Skip to content

Commit

Permalink
fix: prevent window scroll when in frame
Browse files Browse the repository at this point in the history
prevent default on scroll event.
  • Loading branch information
seifer8ff committed Feb 15, 2024
1 parent c8852d2 commit cf4b3b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export class Camera {
};

private handleZoom = (e: WheelEvent) => {
e.preventDefault();
const scaleSpeed = 0.1;

const pivotX = this.ui.gameDisplay.stage.pivot.x;
Expand Down

0 comments on commit cf4b3b7

Please sign in to comment.