Skip to content
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

Bugfix/#86 cancel fling with touch #159

Merged
merged 8 commits into from
Jun 13, 2020

Conversation

markusressel
Copy link
Collaborator

Solution

Any ongoing fling is now immediately interrupted if a ACTION_DOWN touch event is detected. If the user holds down his finger he is able to start a new scroll or fling. This is - at least for me - the behavior I expect from a f.ex. image viewer.
Since this only affects the ScrollFlingDetector it should not affect other ongoing animations.

This PR also adds a long click action (white tile) to the ColorGridView, which I needed for testing and thought it would be a useful addition, so I left it in.

It has been quite a while since I have opened #86 and sadly I am not aware anymore what the current state of the ticket is. As far as I can tell it is still not possible to interrupt ongoing animations using touch input. They can, however, be be interrupted by the developer when issuing a new moveTo or panTo or any similar methods, for both animate=true as well as animate=false.

The option to interrupt ongoing animations by touch is not part of this PR (except the fling of course).

@markusressel markusressel merged commit f47d9a6 into master Jun 13, 2020
@markusressel markusressel deleted the bugfix/#86_cancel_fling_with_touch branch June 13, 2020 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants