Closed PangPangPangPangPang closed 5 months ago
Your use case is quite interesting as an edge case to take care of, so let me explain.
When using gesture handler, its gestures components have a bigger prescende over any pressable components, for this use case use onTap
callback property.
You're attemping to render a big image, bigger than the space ResumableZoom
is taking on the screen, extendGestures
property is desgined for elements smaller than the space occupied by ResuambleZoom
it should make no effect for elements bigger than ResuambleZoom
, I actually made a fix to forgive its usage on Gallery
component for really big elements but I forgot it should be useful for ResumableZoom
aswell.
If you're not sure how this property works, try the example in the docs and attempt to zoom while a finger is in blank area, then set extendGesture
to true
and try again.
Your best bet is to set extendGestures
to false and use onTap
callback property for your pressable needs.
After some thoughts in this topic I decided to "fix" this issue, whatever you were attempting to do is now possible in version 2.0.1
.
Summary
extendGestures={false} works fine, but I have some button in ResumableZoom, these button can not trigger onPress callback when extendGestures is false. But when extendGestures is true, I can not pan the content to the left side.
Environment
Steps to Reproduce
pan to left but not scroll