Skip to content

Commit 2e32371

Browse files
committed
Drop sticky mapMoving flag, gate hover only on evt.dragging
1 parent ae0886c commit 2e32371

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

frontend/src/script.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,23 +1866,19 @@ function initMap() {
18661866

18671867
triggerMapLayer();
18681868

1869-
let mapMoving = false;
1870-
18711869
map.on('movestart', function () {
1872-
mapMoving = true;
18731870
stopHover();
18741871
});
18751872

18761873
map.on('moveend', function (evt) {
1877-
mapMoving = false;
18781874
debouncedSaveSettings();
18791875
debouncedDrawMap();
18801876
if (communityFeed)
18811877
debounceUpdateCommunityFeed();
18821878
});
18831879

18841880
map.on('pointermove', function (evt) {
1885-
if (evt.dragging || mapMoving) return;
1881+
if (evt.dragging) return;
18861882
const pixel = map.getEventPixel(evt.originalEvent);
18871883
handlePointerMove(pixel, evt.originalEvent.target);
18881884
});

0 commit comments

Comments
 (0)