From 8cc0950869e770c1d9694a5cfc4e25bb87e6d3ab Mon Sep 17 00:00:00 2001 From: Pyro Nicampt <81565698+PyroNicampt@users.noreply.github.com> Date: Thu, 2 Jan 2025 10:37:56 -0600 Subject: [PATCH] Fix right-click issues on navigation --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9115353..5f46bb4 100644 --- a/index.js +++ b/index.js @@ -124,6 +124,7 @@ function mapScrollSetup(){ let pinchDistance = null; let previousScale = null; const touchDownHandler = e => { + if(e.button != 0) return; if(touchCache.length == 0){ map_container.style.cursor = 'grabbing'; document.addEventListener('pointermove', touchMoveHandler);