use pointer events instead of mouse events

This commit is contained in:
peterkogo
2025-01-21 12:44:57 +01:00
parent 938647736e
commit 04b9c828bb
9 changed files with 53 additions and 53 deletions
@@ -73,7 +73,7 @@
// Used to prevent click events when the user lets go of the selectionKey during a selection
let selectionInProgress = false;
function onClick(event: MouseEvent | TouchEvent) {
function onClick(event: MouseEvent) {
// We prevent click events when the user let go of the selectionKey during a selection
if (selectionInProgress) {
selectionInProgress = false;