Baseflow / Baseflow/PhotoView

Modifying touch listener.

Open
#573 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've placed the PhotoView inside a card swipe container(similar to Tinder app). If you swipe the card left or right, the card is dismissed. What I need is:
- If the image is zoomed out(scale = 1.0) and user swipes the card container(with one finger), the touch event should go to the card container.
- Pinch zoom should zoom the child PhotoView.
- If scale > 1.0 the PhotoView should scroll horizontally or vertically.

So in conclusion, for one finger gesture and scale=1.0, i want the card container to consume touch event.
By default, the PhotoView is consuming all touch events. How can I modify the library to make this happen?

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.