diff --git a/_dist/component/application/TJSGlassPane.svelte b/_dist/component/application/TJSGlassPane.svelte index d7e4bd23..1df86510 100644 --- a/_dist/component/application/TJSGlassPane.svelte +++ b/_dist/component/application/TJSGlassPane.svelte @@ -122,7 +122,10 @@ if (captureInput) { - event.preventDefault(); + // `wheel` event types can't use `preventDefault` in capture / passive mode. + // see: https://chromestatus.com/feature/6662647093133312 + if (event?.type !== 'wheel') { event.preventDefault(); } + event.stopImmediatePropagation(); } diff --git a/src/component/application/TJSGlassPane.svelte b/src/component/application/TJSGlassPane.svelte index c6783b96..8fd1b3a0 100644 --- a/src/component/application/TJSGlassPane.svelte +++ b/src/component/application/TJSGlassPane.svelte @@ -122,7 +122,10 @@ if (captureInput) { - event.preventDefault(); + // `wheel` event types can't use `preventDefault` in capture / passive mode. + // see: https://chromestatus.com/feature/6662647093133312 + if (event?.type !== 'wheel') { event.preventDefault(); } + event.stopImmediatePropagation(); }