From 1c616f776a4c2b7f25220e9e75a52a2193d6d5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bert?= Date: Mon, 8 Apr 2024 08:23:12 +0200 Subject: [PATCH] Fix typo --- src/web/handlers/GestureHandler.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/web/handlers/GestureHandler.ts b/src/web/handlers/GestureHandler.ts index 8f44ba7d46..d28ca4512f 100644 --- a/src/web/handlers/GestureHandler.ts +++ b/src/web/handlers/GestureHandler.ts @@ -23,7 +23,7 @@ export default abstract class GestureHandler implements IGestureHandler { private lastSentState: State | null = null; protected currentState: State = State.UNDETERMINED; - protected shouldCancellWhenOutside = false; + protected shouldCancelWhenOutside = false; protected hasCustomActivationCriteria = false; protected enabled = false; @@ -317,7 +317,7 @@ export default abstract class GestureHandler implements IGestureHandler { } } protected onPointerLeave(event: AdaptedEvent): void { - if (this.shouldCancellWhenOutside) { + if (this.shouldCancelWhenOutside) { switch (this.currentState) { case State.ACTIVE: this.cancel(); @@ -362,7 +362,7 @@ export default abstract class GestureHandler implements IGestureHandler { if ( this.enabled && this.active && - (!out || (out && !this.shouldCancellWhenOutside)) + (!out || (out && !this.shouldCancelWhenOutside)) ) { this.sendEvent(this.currentState, this.currentState); } @@ -805,11 +805,11 @@ export default abstract class GestureHandler implements IGestureHandler { } protected setShouldCancelWhenOutside(shouldCancel: boolean) { - this.shouldCancellWhenOutside = shouldCancel; + this.shouldCancelWhenOutside = shouldCancel; } protected getShouldCancelWhenOutside(): boolean { - return this.shouldCancellWhenOutside; + return this.shouldCancelWhenOutside; } public getPointerType(): PointerType {