Skip to content

No way to stop animations #57

@veerenmandalia

Description

@veerenmandalia

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:

  1. User starts swiping, animation starts
  2. User minimizes screen (onPause occurs), animation continues
  3. Animation finishes while screen is minimized

When onPause is called, clients should be able to stop all animations (standard practice). 2 issues arise:

  1. Animations continues when user is not on the screen (unnecessary performance hit)
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions