You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no way to stop swipe animations from running. Looks like SwipeActionTouchListener controls animations and only starts them, never stopping them.
Example use case:
User starts swiping, animation starts
User minimizes screen (onPause occurs), animation continues
Animation finishes while screen is minimized
When onPause is called, clients should be able to stop all animations (standard practice). 2 issues arise:
Animations continues when user is not on the screen (unnecessary performance hit)
The listener fires when the app does not care about the result
I have removed the listener in onPause so that callbacks won't be executed (solves 2), however, it would be great to be able to stop the animations from running.
The text was updated successfully, but these errors were encountered:
I understand where you're coming from, but the animations are really short. You have to try really hard to hit any of these cases and even the the user only loses the opportunity to cancel his action.
You can also hit the alternative case: user swipes, and hits home (or whatever other action that causes onPause to run). His action will never execute, even though he saw the animation trigger.
I'm not sure which one of these is preferable.
There is no way to stop swipe animations from running. Looks like SwipeActionTouchListener controls animations and only starts them, never stopping them.
Example use case:
When onPause is called, clients should be able to stop all animations (standard practice). 2 issues arise:
I have removed the listener in onPause so that callbacks won't be executed (solves 2), however, it would be great to be able to stop the animations from running.
The text was updated successfully, but these errors were encountered: