software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
5.83k stars 952 forks source link

Make simultaneous handlers always symmetric on iOS #2800

Closed j-piasecki closed 1 month ago

j-piasecki commented 1 month ago

Description

Current behavior only checks simultaneousHandlers field of the other handler if there are none set in simultaneousHandlers of this handler. This effectively makes it so the field is symmetrical only if there are no simultaneous handlers declared on this handler.

This PR changes it, so that simultaneousHandlers of the other handler are checked always if the checked handler tag is not present in this handler's simultaneous list. This means that only one handler needs to declare being simultaneous with the other one instead of declaring it both ways.