From 1e7d651283fa528593ce5a111addddc1633f301b Mon Sep 17 00:00:00 2001 From: Erkal Selman Date: Sun, 8 Dec 2024 16:47:05 +0100 Subject: [PATCH] Updates --- input.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/input.js b/input.js index c46bca5..186463f 100644 --- a/input.js +++ b/input.js @@ -323,11 +323,9 @@ const sendInputsToElmApp = (app) => { window.addEventListener( "wheel", (e) => { - // Prevent the default browser back/forward gesture - // e.preventDefault(); - if (e.ctrlKey && !inputs.keyboard.control) { - // CTRL is pressed but not pressed :/ This is the (awkward) way Chrome lets you know about the pinching gesture from trackpad. + // CTRL is pressed but not pressed, the (awkward) way Chrome gets the pinch-gesture + e.preventDefault(); inputs.wheel.pinchDeltaForChrome = e.deltaY; } else { inputs.wheel.deltaX = e.deltaX;