Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Zikoat committed Aug 2, 2024
1 parent b552002 commit 3003698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class Controls {
}, LONG_PRESS_DURATION);
}

static _onDragEnd(_event: PIXI.InteractionEvent) {
static _onDragEnd(_event: PIXI.FederatedPointerEvent) {
Controls.dragging = false;
if (!Controls.hasDragged && !Controls.hasLongPressed) {
Controls.open();
Expand All @@ -167,7 +167,7 @@ export class Controls {
Controls.longPressTimer = null;
}
}
static _onDragMove(this: PIXI.Container, event: PIXI.InteractionEvent) {
static _onDragMove(this: PIXI.Container, event: PIXI.FederatedPointerEvent) {
const width = (this.getChildByName("bg") as PIXI.TilingSprite).texture
.width;

Expand Down

0 comments on commit 3003698

Please sign in to comment.