Environment
- CLI: 6.4
- Cross-platform modules:
- Android Runtime: 6.4.1
- iOS Runtime:
- Plugin(s):
Describe the bug
If a layout with a pan or swipe event contains a scroll view child, that scroll view will consume panning. Additionally, changing scroll view's 'isUserInteractionEnabled' or 'isScrollEnabled' property to 'false' will not apply as long as parent's pan gesture is in progress.
I see that in such cases it's generally suggested to set pan event to ScrollView itself, but this is quite a limitation.
To Reproduce
Try to move rectangle vertically.
https://play.nativescript.org/?template=play-js&id=mKxeSS&v=34
Expected behavior
'isScrollEnabled' should apply to ScrollView, regardless of each its parent being in gesture mode.
Sample project
https://play.nativescript.org/?template=play-js&id=mKxeSS&v=34
Additional context
There could be an implementation of 'isPassThroughParentEnabled' on ScrollView to get rid of gestures inconveniences.
The solution to this will broaden the possibilities for developers to invent more customizations.
I already have an easy-to-implement custom pull-to-refresh component in mind if this is somehow solved.
Environment
Describe the bug
If a layout with a pan or swipe event contains a scroll view child, that scroll view will consume panning. Additionally, changing scroll view's 'isUserInteractionEnabled' or 'isScrollEnabled' property to 'false' will not apply as long as parent's pan gesture is in progress.
I see that in such cases it's generally suggested to set pan event to ScrollView itself, but this is quite a limitation.
To Reproduce
Try to move rectangle vertically.
https://play.nativescript.org/?template=play-js&id=mKxeSS&v=34
Expected behavior
'isScrollEnabled' should apply to ScrollView, regardless of each its parent being in gesture mode.
Sample project
https://play.nativescript.org/?template=play-js&id=mKxeSS&v=34
Additional context
There could be an implementation of 'isPassThroughParentEnabled' on ScrollView to get rid of gestures inconveniences.
The solution to this will broaden the possibilities for developers to invent more customizations.
I already have an easy-to-implement custom pull-to-refresh component in mind if this is somehow solved.