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

Is there any way to "overscroll" a PhotoView? #726

Open
jeffreyfjohnson opened this issue Oct 21, 2019 · 0 comments
Open

Is there any way to "overscroll" a PhotoView? #726

jeffreyfjohnson opened this issue Oct 21, 2019 · 0 comments

Comments

@jeffreyfjohnson
Copy link

I would like to be able to overscroll a PhotoView. For example, if a user zooms in and scrolls all the way to the bottom of the image contained in the PhotoView, and then keeps pulling the image upward, I would like the PhotoView to realize it has scrolled to the edge of its bottom bound, and then essentially translate upwards. Currently you cannot do this, in this example the bottom of the image cannot be scrolled beyond the bottom of the PhotoView itself.

I tried implementing this custom, by wrapping the PhotoView in a custom ViewGroup, and overriding requestDisallowInterceptTouchEvent in the ViewGroup, but from what I've gathered from logs I added, PhotoView doesn't call that method in a way that makes it easy to implement what I want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant