-
-
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
Tracking Scroll without swapping delegate #128
Comments
Thanks for your report, @muukii! I will consider a solution for each option. |
I've found out an idea. |
I'm so sorry to be too late for my reply. I've been so busy recently. At first, You idea is great 😎 I couldn't come up with it. Now the library adds a target to UIScrollView.panGestureRecognizer to control a scroll view. But even now it's not enough. I'm happy for you to try to improve the scroll tracking with the hack 😄 Then I'm going to talk about this issue. In conclusion, the hack doesn't seem to be working for the use case for which the library uses the swapping delegate. The use case is that a user can scroll seamlessly after a user moves a panel from .tip/.half to .full. Therefore, it has to control or prevent scroll deceleration after finger up. It would be great for the library to allow a user to use Texture in a panel and it should be. So now I'm trying to replace swapping delegate by adding a display link to prevent scroll deceleration after finger up 👍 If you have any ideas, I'm happy for you to let me know! |
Thank you I've also tried to find a way of solution for that. |
Thank you for your mention! (I'm sorry to be late a bit) That's working 🎉 I created a draft PR #151 with |
@muukii |
Short description
When using ASCollectionNode of Texture (http://texturegroup.org/),
With
FloatingPanelController.track(_ :)
, Texture raise an exception.Expected behavior
The current approach what swapping delegate is so good.
But, It may have some problem with to swap delegate.
So, We need to find another approach to track scroll in scrollview.
Or, as a workaround, To tell scroll event manually will be not bad.
If the customers have this problem, We tell them this workaround.
Actual behavior
Steps to reproduce
set scrollView of ASCollectionNode.view to track().
then an exception will be caused by Texture.
Code example that reproduces the issue
Environment
Library version
1.3.3
Installation method
iOS version(s)
iOS 12.1
Xcode version
10.1
The text was updated successfully, but these errors were encountered: