react-native-zoom-toolkit icon indicating copy to clipboard operation
react-native-zoom-toolkit copied to clipboard

[Feature]: add velocity to onVerticalPull for Gallery

Open janpe opened this issue 5 months ago • 1 comments

Summary

I'd like to implement a "pull to close" feature for Gallery. I'm able to do this now but I'd like to take the velocity of the gesture into consideration. So if the user pulls slowly all the way down and releases the Gallery will stay open. But if the user pulls quickly even if the translateY value is small at the point of release I'd like to close the Gallery.

Expected API

onVerticalPull: ({translateY: number, released: boolean, velocity: number}) => void

janpe avatar Nov 05 '25 12:11 janpe

@janpe Sounds like a good idea, I'll add it right now.

Glazzes avatar Nov 10 '25 16:11 Glazzes