-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Fix broken swipe distance when item width < recyclerView's width #951
Conversation
…rView's width (e.g. grid layout)
This still seems to have some strange behavior |
That can be explained :
swipeableItem.withIsSwipeable(i % 5 != 0) that's why item 16 is blocked (16 being the 15th item in a 1-indexed list)
As a consequence, when the item only takes up half the screen width, the two buttons on the left and the button on the right overlap, which creates what you've seen. This is a layout issue that has nothing to do with the fix suggested in this PR. I think the fix will be easier to check if you set |
Thanks for mentioning these things again, but the main problem I actually see is, that I can't drag back to dismiss. it seems to not take the action. It works though with full width beautifully. Can you also please try that one if it works for you fully? |
You're right, when using a two-column grid view, it takes multiple swipes to dismiss the view. I'm gonna investigate this. |
… swipe moves while a swipe gesture is occuring
That's done ! There were two other issues I solved in today's batch. PS : Not sure about how to solve the merge conflict myself... |
Looks good :D thank you so much for the fixes |
I'm gonna do some research on the differ and the loading system, as I'm facing crashes on certain devices (~4% of my users). Stay tuned for more discussions / PRs... |
@RobbWatershed thanks a ton. |
This time I'm fixing a broken swipe animation that happens when using a grid layout instead of a linear layout. The details are in the comment I left in the code.
Thanks~
PS : Sorry for the fragmented PR's, but I'm discovering issues step by step, as I'm extending my use of FastAdapter to create new features.