add brackets to the condition

This commit is contained in:
Hanusiak Piotr 2022-02-02 16:42:38 +01:00
parent a7b0516ac4
commit 4b7278b843

View file

@ -22,7 +22,7 @@ export class GameSceneUserInputHandler implements UserInputHandlerInterface {
} }
public handlePointerUpEvent(pointer: Phaser.Input.Pointer, gameObjects: Phaser.GameObjects.GameObject[]): void { public handlePointerUpEvent(pointer: Phaser.Input.Pointer, gameObjects: Phaser.GameObjects.GameObject[]): void {
if (!pointer.wasTouch && pointer.leftButtonReleased() || pointer.getDuration() > 250) { if ((!pointer.wasTouch && pointer.leftButtonReleased()) || pointer.getDuration() > 250) {
return; return;
} }
for (const object of gameObjects) { for (const object of gameObjects) {