Skip to content

Commit 53ba2ec

Browse files
committed
- touch input actual fix
1 parent 848912d commit 53ba2ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game-objects/hero.game-object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class Hero extends Sprite {
129129
this._state.set({ action: "MOVING-RIGHT" });
130130
} else if (this.isMovingLeft) {
131131
this._state.set({ action: "MOVING-LEFT" });
132-
} else {
132+
} else if (!this.scene.input.activePointer.isDown) {
133133
this.body.setVelocityX(0);
134134
}
135135

0 commit comments

Comments
 (0)