-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
UITableView's didSelectRowAt not called after swiping #164
Comments
Hi, I have the same issue. |
I acknowledged this issue. I will try to fix it. |
How about |
Yes, this fixes the issue. Thanks. |
Still same for me :/ |
I double checked that on the Maps example and looks like it's only partially fixed. It works now when you swipe up from tip to half and half to full but it's still broken when you swipe from full to half. |
I'm using from tip to full, so I can confirm for that. I will try the other ways. |
Yes, from tip to half, it works |
Nevermind, it doesn't work too, I scrolled before when I tried from tip to half. |
Ok, I found something. When I try to change the height constraint of a view in "floatingPanelDidChangePosition" for the tip position, I got the issue. But if I don't change the height, I don't have the issue. |
This issue might be related to this bug ,https://bugs.swift.org/browse/SR-10257. |
@scenee I doubt that. This issue can be reproduced using Xcode 10.1. The bugs you're talking about are related to Xcode 10.2. |
Thanks for your quick feedback, @peterstojanowski 😀 |
Hmm.... the commit is still only partially fixed... |
I found out that Apple Maps has the same bug on the latest version (iOS 12.2) |
I have a suggestion to solve this problem. |
I merged a solution into master to ease this issue 👍 Thanks all 🎉 |
Short description
There is a really annoying bug when the contentViewController of the FloatingPanelController has a UITableView. When you swipe up or down quickly so that the floating panel bounces a bit at the end of animation, the first tap on UITableView cell is ignored - the delegate method
tableView:didSelectRowAt:
is not called. It's being called the second time you tap on a cell or when you swipe slowly and then tap. There must be an issue with intercepting some gestures when UIScrollView decelerates but I didn't have much time to investigate properly.Expected behavior
The
tableView:didSelectRowAt:
is called every time.Actual behavior
The
tableView:didSelectRowAt:
is not called the first time after scrolling quickly.Steps to reproduce
Can be easily reproduced using the Maps example by adding some logs to
tableView:didSelectRowAt:
to see they are not printed out after scrolling fast and tapping on a cell.Code example that reproduces the issue
Environment
Library version
1.4.0
Installation method
iOS version(s)
12
Xcode version
10.1
The text was updated successfully, but these errors were encountered: