new: register wheel event listeners as non-passive

This commit is contained in:
daboe01
2026-06-17 16:10:39 +02:00
parent 361a4203da
commit 1223cfc965
+6 -6
View File
@@ -472,9 +472,9 @@ _CPPlatformWindowWillCloseNotification = @"_CPPlatformWindowWillCloseNotificatio
theDocument.addEventListener("touchmove", touchEventCallback, {passive: false});
theDocument.addEventListener("touchcancel", touchEventCallback, {passive: false});
_DOMWindow.addEventListener("DOMMouseScroll", scrollEventCallback, NO);
_DOMWindow.addEventListener("wheel", scrollEventCallback, NO);
_DOMWindow.addEventListener("mousewheel", scrollEventCallback, NO);
_DOMWindow.addEventListener("DOMMouseScroll", scrollEventCallback, { passive: false });
_DOMWindow.addEventListener("wheel", scrollEventCallback, { passive: false });
_DOMWindow.addEventListener("mousewheel", scrollEventCallback, { passive: false });
_DOMWindow.addEventListener("resize", resizeEventCallback, NO);
@@ -508,9 +508,9 @@ _CPPlatformWindowWillCloseNotification = @"_CPPlatformWindowWillCloseNotificatio
_DOMWindow.removeEventListener("focus", onFocusEventCallback, NO);
//FIXME: does firefox really need a different value?
_DOMWindow.removeEventListener("DOMMouseScroll", scrollEventCallback, NO);
_DOMWindow.removeEventListener("wheel", scrollEventCallback, NO);
_DOMWindow.removeEventListener("mousewheel", scrollEventCallback, NO);
_DOMWindow.removeEventListener("DOMMouseScroll", scrollEventCallback, { passive: false });
_DOMWindow.removeEventListener("wheel", scrollEventCallback, { passive: false });
_DOMWindow.removeEventListener("mousewheel", scrollEventCallback, { passive: false });
[PlatformWindows removeObject:self];