addEventListener {passive: false} (#16575)

This commit is contained in:
w-e-w 2024-10-29 23:59:04 +09:00 committed by GitHub
parent f31faf6f14
commit 59481435f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 // Increase or decrease brush size based on scroll direction
adjustBrushSize(elemId, e.deltaY); 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. // 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) { function handleMoveKeyDown(e) {

View File

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

View File

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