addEventListener {passive: false}

while passive is false by default
and we do call .preventDefault() so it has to be false
the Chrome browser shows vebros level suggestions which annoys some users
This commit is contained in:
w-e-w
2024-10-22 11:14:42 +09:00
parent 5865da28d1
commit 315df16365
3 changed files with 3 additions and 3 deletions

View File

@@ -816,7 +816,7 @@ onUiLoaded(async() => {
// Increase or decrease brush size based on scroll direction
adjustBrushSize(elemId, e.deltaY);
}
});
}, {passive: false});
// Handle the move event for pan functionality. Updates the panX and panY variables and applies the new transform to the target element.
function handleMoveKeyDown(e) {

View File

@@ -104,7 +104,7 @@ var contextMenuInit = function() {
e.preventDefault();
}
});
});
}, {passive: false});
});
eventListenerApplied = true;

View File

@@ -124,7 +124,7 @@
} else {
R.screenX = evt.changedTouches[0].screenX;
}
});
}, {passive: false});
});
resizeHandle.addEventListener('dblclick', onDoubleClick);