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
6.13k stars 982 forks source link

[Web] Add `minVelocity` to `Pan` custom activation criteria #2884

Closed m-bert closed 6 months ago

m-bert commented 6 months ago

Description

Recently I've discovered that using .minVelocity() modifier doesn't affect Pan activation on web. After further investigation I've found out that list with custom activation criteria had minVelocityX and minVelocityY, but minVelocity was missing. This PR adds mentioned criterion.

Test plan

Tested on example app (just add .minVelocity() in any example with Pan