Flag event listeners as passive

This commit is contained in:
schroda
2025-11-22 17:04:50 +01:00
parent 36e6d7d13e
commit 704d3b191f
7 changed files with 10 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ class PointerDeviceUtilClass {
private detectedTrackPadLike: boolean | undefined = undefined;
constructor() {
window.addEventListener('wheel', this.record.bind(this));
window.addEventListener('wheel', this.record.bind(this), { passive: true });
setInterval(() => {
this.determineIsTrackPadLike();