Fix cursor mode on drag

This commit is contained in:
Pyro Nicampt committed 2025-01-02 06:30:31 -06:00
1 parent ffce189ddc
commit ab14ae1acb
1 file changed
+3
+3
View File
@@ -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);