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

Disable quick scroll after zooming out #36

Open
navimakarov opened this issue Jul 17, 2021 · 4 comments
Open

Disable quick scroll after zooming out #36

navimakarov opened this issue Jul 17, 2021 · 4 comments

Comments

@navimakarov
Copy link

After zooming out the pdf scrolls down. Can I disable it?

@Dmitry-Borodin
Copy link
Owner

I don't see it scrolling down. Please do you see this behaviour in a samples as well?

@navimakarov
Copy link
Author

Thank you for the response. I also see this problem on all devices and with sample file as well. When I zoom in and then quickly zoom out it scrolls down. You may see on videos that for example after zooming in 6th page and the quickly zooming out it scrolls down to 20th page or something like that.

  1. github sample
    https://drive.google.com/file/d/1D0KnS-nqtG9no5tlwqVUxuVIZvJDUrNB/view?usp=sharing
  2. local file
    https://drive.google.com/file/d/1zdXYW_PvAoZqIx07KKgbh3IwM8g9kXlt/view?usp=sharing

@Dmitry-Borodin
Copy link
Owner

Thank you for reporting this.
I honestly don't know what is the reason and this looks like edge case.
Would be nice to fix it, but I don't expect to find time for it soon.

Please add here any observations that may help to find cause,.
Or if you'll find time to investigate - that would be great.

@navimakarov
Copy link
Author

After some testing I found out that the problem is somewhere in this if statement but I have no idea how it works and how to solve it
https://github.com/Dmitry-Borodin/pdfview-android/blob/master/pdfview-android/src/main/java/com/pdfview/subsamplincscaleimageview/SubsamplingScaleImageView.java#L746

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

2 participants