onTouch will trigger outside touch event
See original GitHub issuewhen i wrap it in a scrollview, it will trigger the scrollview scroll.
and i’ve tried use onStartShouldSetPanResponder=() => true
something like this to stop touch event propogation, but it won’t work.
Please give me some advices, Thank you.
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
Android: onTouchListener - cancel touch event when user ...
Every card has an onTouchListener that fires an Intent on touch event UP. If the user moves the finger off of the card...
Read more >Manage touch events in a ViewGroup - Android Developers
The onInterceptTouchEvent() method is called whenever a touch event is detected on the surface of a ViewGroup , including on the surface of ......
Read more >Gestures and Touch Events | CodePath Android Cliffnotes
In turn, the "ViewGroup B" dispatchTouchEvent will trigger the "ViewGroup B" onInterceptTouchEvent and if that method chooses not to intercept, the touch event...
Read more >Touch events - Web APIs - MDN Web Docs - Mozilla
Touch events are similar to mouse events except they support simultaneous touches and at different locations on the touch surface.
Read more >android.widget.RelativeLayout.setOnTouchListener java code ...
Set whether a touch outside of the * search bar's bounds will cause the ... onTouch(View v, MotionEvent event) { //todo check if...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same for me.
If I use the Skia Component which is using
useTouchHandler
inside ofScrollView
, ScrollView’s vertical scroll event cancels useTouchHanderonActive
.Here I would really recommend to use react-native-gesture-handler for such a use-case. If you think there is a bug on our side or you would like to make a feature request for us to support such a use-case please feel free to reopen this issue.