From 4d27661033c0c04e382bcc2fb34c3974797e5f37 Mon Sep 17 00:00:00 2001 From: PCigales <58741513+PCigales@users.noreply.github.com> Date: Sat, 23 Nov 2024 16:29:13 +0100 Subject: [PATCH] Fix --- GPXTweaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPXTweaker.py b/GPXTweaker.py index 9309102..b573b29 100644 --- a/GPXTweaker.py +++ b/GPXTweaker.py @@ -14655,7 +14655,7 @@ class GPXTweakerWebInterfaceServer(): ' do {\r\n' \ ' dt = e.deltaY > 0 ? dt.nextElementSibling : dt.previousElementSibling;\r\n' \ ' if (! dt) {return;}\r\n' \ - ' if (focused.indexOf("way") != dt.id.indexOf("way")) {return;}\r\n' \ + ' if (dt.id.indexOf("dot") < 0 || focused.indexOf("way") != dt.id.indexOf("way")) {return;}\r\n' \ ' pt = document.getElementById(dt.id.replace("dot", "point"));\r\n' \ ' } while (pt.hasAttribute("data-error") || pt.hasAttribute("data-deleted") || (! focused.startsWith("way") && pt.parentNode.hasAttribute("data-deleted")));\r\n' \ ' element_click(null, pt);\r\n' \