Skip to content

Commit 7ae07f1

Browse files
pklatkalongziz
authored andcommitted
fix: gesture handler processing order and active/awaiting state
## Description This PR: 1. Changes the order of processed gesture handler by sorting them, like [on Android](https://github.com/software-mansion/react-native-gesture-handler/blob/8a37a71d8bb9859b599351407e7b28a1ec98b4bf/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt#L231-L236). 2. Fixes the wrong active/awaiting state in certain cases by upgrading the GestureHandlerOrchestrator.ts implementation. ## Test plan 1. All test work as expected 2. Tested the repro available in the issue (or in linked discord message) ## Issue links Closes #94 See merge request rnoh/react-native-harmony-gesture-handler!98
1 parent 927fc2d commit 7ae07f1

File tree

4 files changed

+314
-171
lines changed

4 files changed

+314
-171
lines changed

tester/harmony/gesture_handler/src/main/ets/core/GestureHandler.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,10 @@ export abstract class GestureHandler<TGestureConfig extends GestureConfig = Gest
712712
this.activationIndex = value
713713
}
714714

715+
getActivationIndex(): number {
716+
return this.activationIndex
717+
}
718+
715719
setShouldResetProgress(value: boolean): void {
716720
this.shouldResetProgress = value;
717721
}

0 commit comments

Comments
 (0)