Skip to content

Commit

Permalink
Added scrolling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Aug 21, 2024
1 parent 7029c8f commit 974f125
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fission/src/systems/scene/ScreenInteractionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ class ScreenInteractionHandler {
this._touchMove = e => e.preventDefault()

this._domElement.addEventListener("pointermove", this._pointerMove)
this._domElement.addEventListener("wheel", this._wheelMove, { passive: false })
this._domElement.addEventListener("wheel", e => {
if (e.ctrlKey) {
e.preventDefault();
} else {
this._wheelMove
}
}, { passive: false })
this._domElement.addEventListener("contextmenu", this._contextMenu)
this._domElement.addEventListener("pointerdown", this._pointerDown)
this._domElement.addEventListener("pointerup", this._pointerUp)
Expand Down

0 comments on commit 974f125

Please sign in to comment.