From ab14ae1acbb55e36ba8c6db3a4e331b6d66d1189 Mon Sep 17 00:00:00 2001 From: Pyro Nicampt <81565698+PyroNicampt@users.noreply.github.com> Date: Thu, 2 Jan 2025 06:30:31 -0600 Subject: [PATCH] Fix cursor mode on drag --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 87cf2ed..9115353 100644 --- a/index.js +++ b/index.js @@ -156,6 +156,9 @@ function mapScrollSetup(){ if(!touchCache[e.pointerId]) return; touchCache[e.pointerId] = null; touchCount--; + if(touchCount == 0){ + map_container.style.removeProperty('cursor'); + } } const scrollHandler = e => { if(e.deltaY != 0) zoomAtPosition(e.clientX, e.clientY, e.deltaY > 0 ? 1/zoomFactor : zoomFactor);