-
Notifications
You must be signed in to change notification settings - Fork 718
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
Managed snapping (ListView, ScrollViewer) uses hard-coded delay out of sync with inertia #10891
Comments
yeah, so in order to get rid of the unoplatform/nventive-private#421 infinite oscillating bug |
@takla21 try this out and let us know, we'll otherwise close the issue. Thanks! |
@jeromelaban they already applied this UseNativeSnapHelper=false to fix another bug |
@Xiaoy312 @jeromelaban So to summarize what was discussed here, if the uno snap implementaion, is there a way we can make it smoother or it's something we lost by disabling scrolling momentum? |
|
@dr1rrb can help |
#11962 may address the some irks with the LinearSnapHelper that I've noted in my last comment note: we would need to update the code, replacing SnapPointsSnapHelper with LinearSnapHelper in
|
With #11962 and with So I think this is no longer "urgent" and as it will require a significant amount of work, I think we can postpone this. Opinion @jeromelaban @takla21 @Xiaoy312 ? TODO: We need to remove the hard-coded delay and configure the inertia end on a snappoint - currently the idea was to wait the given delay before requesting the snapping in order to let the inertia slow down a bit before aborting it and starting the "scroll to" animation at a fairly equivalent speed) |
@Xiaoy312 Tried with both the
|
@dr1rrb I forgot to mention it, but I recently tested the previous workaround with the delay variable and it's should be enough for us. |
@takla21 did you tried with some inertia? Indeed with delay set to 0 it works well if you release the move pointer in the center of the screen, wait a few and then release. However if you "swipe" the screen you might have some weird animations, so I would recommend you, once #11962 has been merged, to use the native snapping (i.e. set |
@dr1rrb Here's a screenrecording from the sample So it seems that it will wait until it's done moving before doing the snap thing. Which makes it a bit robotic in the end, but yeah we're still going with it for now. I'll revisit using the native one once it's ready Here's the previous sample updated to latest uno version (just in case) |
Current behavior
While using the uno implementation for item snapping, it takes time before snap.
Expected behavior
It should be a bit faster.
How to reproduce it (as minimally and precisely as possible)
Workaround
N/A
Works on UWP/WinUI
N/A
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia, Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
4.6.39
Affected platforms
Android
IDE
Visual Studio 2022
IDE version
17.4.3
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: