You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two nested scroll views - vertical inside horizontal.
Requirement: Vertical should be always enabled, but if gesture goes 20 degree to horizontal axe for some distance (e.g. 10 pixels) than we should enable horizontal scroll and disable vertical.
So basically we are trying to configure the angle at which horizontal gesture should have higher priority than vertical.
We tried making pan gesture handler and enable/disable scrollEnabled with reanimated.
Doesn't work because when you enable disabled scroll, scrollview doesn't track current gesture. So it is enabled only from the next gesture.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Two nested scroll views - vertical inside horizontal.
Requirement: Vertical should be always enabled, but if gesture goes 20 degree to horizontal axe for some distance (e.g. 10 pixels) than we should enable horizontal scroll and disable vertical.
So basically we are trying to configure the angle at which horizontal gesture should have higher priority than vertical.
We tried making pan gesture handler and enable/disable
scrollEnabled
with reanimated.Any ideas how to implement that? Thank you!
Similar question: #2978
Beta Was this translation helpful? Give feedback.
All reactions