question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onTouch will trigger outside touch event

See original GitHub issue

when 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:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
ngimacommented, Sep 7, 2022

Same for me.

If I use the Skia Component which is using useTouchHandler inside of ScrollView, ScrollView’s vertical scroll event cancels useTouchHander onActive.

1reaction
wcandilloncommented, Sep 12, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found