Fix right-click issues on navigation

This commit is contained in:
Pyro Nicampt committed 2025-01-02 10:37:56 -06:00
1 parent 7e51329524
commit 8cc0950869
1 file changed
+1
+1
View File
@@ -124,6 +124,7 @@ function mapScrollSetup(){
let pinchDistance = null; let pinchDistance = null;
let previousScale = null; let previousScale = null;
const touchDownHandler = e => { const touchDownHandler = e => {
if(e.button != 0) return;
if(touchCache.length == 0){ if(touchCache.length == 0){
map_container.style.cursor = 'grabbing'; map_container.style.cursor = 'grabbing';
document.addEventListener('pointermove', touchMoveHandler); document.addEventListener('pointermove', touchMoveHandler);