Baseflow / Baseflow/PhotoView

Is there any way to "overscroll" a PhotoView?

Open
#726 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
18.8k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.