Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
erkal committed Dec 8, 2024
1 parent f616810 commit 1e7d651
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e7d651

Please sign in to comment.