File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/react-native-gesture-handler/src/v3 Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ const HostGestureDetector = (props: GestureHandlerDetectorProps) => {
17
17
const oldHandlerTags = useRef < Set < number > > ( new Set < number > ( ) ) ;
18
18
19
19
const attachHandlers = ( ) : void => {
20
- const curHandlerTags = new Set ( handlerTags ) ;
21
- const newHandlerTags : Set < number > = curHandlerTags . difference (
20
+ const currentHandlerTags = new Set ( handlerTags ) ;
21
+ const newHandlerTags : Set < number > = currentHandlerTags . difference (
22
22
oldHandlerTags . current
23
23
) ;
24
24
newHandlerTags . forEach ( ( tag ) => {
@@ -29,6 +29,7 @@ const HostGestureDetector = (props: GestureHandlerDetectorProps) => {
29
29
propsRef
30
30
) ;
31
31
} ) ;
32
+ oldHandlerTags . current = currentHandlerTags ;
32
33
} ;
33
34
34
35
const detachHandlers = ( ) : void => {
You can’t perform that action at this time.
0 commit comments