Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
runWorklet(CALLBACK_TYPE.FINALIZE, gesture, event, false);
}
} else if (isTouchEvent(event)) {
if (!stateControllers[i]) {
if (!stateControllers[i] || stateControllers[i].handlerTag !== event.handlerTag) {

Check failure on line 166 in packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/useAnimatedGesture.ts

View workflow job for this annotation

GitHub Actions / check

Replace `!stateControllers[i]·||·stateControllers[i].handlerTag·!==·event.handlerTag` with `⏎··········!stateControllers[i]·||⏎··········stateControllers[i].handlerTag·!==·event.handlerTag⏎········`
stateControllers[i] = GestureStateManager.create(event.handlerTag);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
activate: () => void;
fail: () => void;
end: () => void;
/** @internal */
handlerTag: number;
}

const warningMessage = tagMessage(
Expand All @@ -21,6 +23,8 @@
function create(handlerTag: number): GestureStateManagerType {
'worklet';
return {
handlerTag,

Check failure on line 27 in packages/react-native-gesture-handler/src/handlers/gestures/gestureStateManager.ts

View workflow job for this annotation

GitHub Actions / check

Delete `····`
begin: () => {
'worklet';
if (REANIMATED_AVAILABLE) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
export const GestureStateManager = {
create(handlerTag: number): GestureStateManagerType {
return {
handlerTag,

Check failure on line 8 in packages/react-native-gesture-handler/src/handlers/gestures/gestureStateManager.web.ts

View workflow job for this annotation

GitHub Actions / check

Delete `······`
begin: () => {
NodeManager.getHandler(handlerTag).begin();
},
Expand Down
Loading