Skip to content

Commit

Permalink
Merge 67b6157 into 02afc5b
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Sep 2, 2021
2 parents 02afc5b + 67b6157 commit 486603b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"terser-webpack-plugin": "3.1.0",
"ts-loader": "9.2.5",
"typedoc": "0.21.9",
"typescript": "4.3.5",
"typescript": "4.4.2",
"url-loader": "4.1.1",
"wallaby-webpack": "3.9.16",
"webpack": "5.51.1",
Expand Down
3 changes: 2 additions & 1 deletion src/engine/Input/Pointers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { CapturePointer } from '../Traits/CapturePointer';
import { Actor } from '../Actor';

export type DOMPointerEvent = globalThis.PointerEvent;
export type DOMWheelEvent = globalThis.WheelEvent;

interface TouchEvent extends Event {
altKey: boolean;
Expand Down Expand Up @@ -459,7 +460,7 @@ export class Pointers extends Class {
}

private _handleWheelEvent(eventName: string, eventArr: WheelEvent[]) {
return (e: MouseWheelEvent) => {
return (e: DOMWheelEvent) => {
// Should we prevent page scroll because of this event
if (
this._engine.pageScrollPreventionMode === ScrollPreventionMode.All ||
Expand Down

0 comments on commit 486603b

Please sign in to comment.