Fix for right click breaking touch count
This commit is contained in:
1 parent
dc6b7b42a4
commit
f4c1c27f21
1 file changed
+4
@@ -172,6 +172,10 @@ function mapNavigationSetup(){
|
||||
|
||||
mapContainer.addEventListener('pointerdown', touchDownHandler);
|
||||
mapContainer.addEventListener('wheel', scrollHandler);
|
||||
mapContainer.addEventListener('contextmenu', e => {
|
||||
touchCache = {};
|
||||
touchCount = 0;
|
||||
});
|
||||
|
||||
document.getElementById('navZoomIn').addEventListener('click', e => {navButtonInput('zoomIn');});
|
||||
document.getElementById('navZoomOut').addEventListener('click', e => {navButtonInput('zoomOut');});
|
||||
|
||||
Reference in new issue
Block a user