Snapping
Issue #14
- Extracted defaults
@RareScrap I have scanned your code so far, I have some possible options that can deal with the difficulties you have pointed at #14.
For scroll strategies other than ExitUntilCollapsed, they need to modify offsetY which is a member of CollapsingToolbarScaffoldState. The cause derives from the fact that snap behavior is actually a feature of CollapsingToolbarScaffold. I expect the problem would be fixed if you move the snapping methods to ScaffoldState.
And for interrupting animation with user inputs, I think it may be solved by utilizing MutatePriority though it may need some extra researches.
Thank you for your review. I was little busy last weekend. Will done with PR at this weekend.
Great!
There are many TODOs that require your attension. Please comment on each of them so we can discuss them.
Thank you for reminding, I will review it until this weekend!
@onebone what are the plans for merging this PR?
There is a bug in it. I will describe it tomorrow.
Sorry guys, I was too busy to done with it but now I have some time :)
Rooting for that snapping guys! :)
Hi, I created a newer version of the snapping feature here: https://github.com/onebone/compose-collapsing-toolbar/pull/83
PR contains the recorded gifs and you can test it by yourself. For me, it seems like everything is working fine.