-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ListView] Touches callbacks do not work in ListView section headers [0.6.0v and higher] #2075
Comments
|
I should add to this that once that method is removed, when a cell is scrolled behind a sticky header touches are then passed to the cell behind the section header, instead of the tappable item in the sticky header. This was the behavior in 0.5.0v as well. |
It's been a little over a week since I opened this issue, @nicklockwood @brentvatne do you have any advice? This will be a blocking issue for me before too long. Thanks! |
Summary: Point must be converted to the stickyHeader's coordinate space and then passed to the stickyHeaders hitTest:withEvent: method in order to be correctly routed to any subviews of the stickyHeader. This resolves this [issue](facebook#2075). Closes facebook#2224 Github Author: Tj <tfallon@Tjs-MBP.local>
Merged into 0.10.0-rc. |
@vjeux @ide @nicklockwood , seems like this issue still exists, per this recent post: #3577 |
@jaygarcia Looks a different issue, no? This issue was about the touch events not making their way to the event listeners. |
Thanks @ide. My head is a bit fuzzy arm -- dealing with a cold. |
I have a few native modules that were working in 0.5.0v. As of 0.6.0v, and in both v0.7.0, v0.7.1 they no longer receive touches.
I'm overriding touchesBegan/Moved/Cancelled/Ended, and these methods are never called on any item rendered in a sectionHeader.
If I comment out this method in RCTScrollView.h, everything works just peachy. This method was introduced in 0.6.0v, so my guess is that this is the culprit. I am not sure what it was introduced for, so I'm not sure how best to fix it.
The text was updated successfully, but these errors were encountered: