Scrolling behavior in ViewPager

Open
#833 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, java
Domain
mobile

Research direction

Start by reproducing the behavior with PhotoView inside an Android ViewPager, using an image larger than the view. Trace how scrolling at the image border transfers control to ViewPager. Done means the image can be scrolled back from its edge before ViewPager changes pages, or the behavior is exposed through a usable setting.

Written by the indexing model from the issue text.

Description

I'm sorry if this has been asked before, I just haven't found anything relating this this.

So when PhotoView is in a ViewPager and the photo is scrollable (larger than the view size), the behavior is that whenever it reaches border, ViewPager takes over and starts to scroll pages. So when the user try to scroll the image and reaches the edge, they wants to scroll the other direction to view other part but at this point they can only move the whole ViewPager.

I'm wondering if there is a setting to allow a larger buffer after scrolling to the edge before ViewPager takes over?

Dominant language
Java
Stars
18.8k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Baseflow/PhotoView

All issues in Baseflow/PhotoView

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.