Fix right-click issues on navigation
This commit is contained in:
1 parent
7e51329524
commit
8cc0950869
1 file changed
+1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user