ChanelView icon indicating copy to clipboard operation
ChanelView copied to clipboard

Clicks on the second defaultHeight item and then flinging cause unexpected scroll

Open amanzan opened this issue 6 years ago • 4 comments

It's a little hard to explain, but I'll do my best. When clicking on the first defaultHeight item (the one right after the expanded item), behavior is just fine, you can keep clicking and flinging and it works perfect.

When clicking on the second, third (and so on) defaultHeight items, expanding animation works fine, but then when you fling from top to down, all the items get contracted. Second item should get expanded.

If you don't understand what I mean, I can try to make a GIF to explain.

Thanks for this cool list animation! 👍

amanzan avatar Nov 28 '17 17:11 amanzan

Actually, here is a gif. I clicked on the 4th item, then tried to fling from top to down. The blue car item should have been expanded down and then follow normal order. Hope you get what I mean! ezgif com-optimize

amanzan avatar Nov 28 '17 18:11 amanzan

Hi @amanzan, I know about this issue. I've made something very much like this with a different approach. Please refer this https://github.com/developer-shivam/FeaturedRecyclerView

developer-shivam avatar Nov 29 '17 06:11 developer-shivam

I know your other library :) actually I was using it before this one, but I prefer this approach since I had a hard time implementing the "click-to-expand" in your FeatureRecyclerView. Also, I'd like to remove the scroll, so that you can only move with clicks or flings.

Any hint about how to proceed to fix the issue on this project? Thanks a lot @developer-shivam

amanzan avatar Nov 29 '17 08:11 amanzan

I don't know if it's the best way to do it, but I created a pull request that fixes the issue. Check it out and feel free to merge it if you think is useful!

amanzan avatar Nov 29 '17 10:11 amanzan