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

iOS Zooming issue #71

Closed
matiasbontempo opened this issue Oct 26, 2017 · 14 comments
Closed

iOS Zooming issue #71

matiasbontempo opened this issue Oct 26, 2017 · 14 comments

Comments

@matiasbontempo
Copy link

When zooming, the view resets to the center. This means that if I move around the pdf and then try to zoom in or out, I get back to the center every time.

@wonday
Copy link
Owner

wonday commented Oct 27, 2017

It look like zooming from the current screen center,
but after zooming, if you move to a new place,
the next zooming will be from new screen center.
In simulator it looks like this,
I have no device on hand now, I do not known what is the pinch in result.

@matiasbontempo
Copy link
Author

I tested this on a physical device and it's the exact same behaviour.

@nonotest
Copy link
Contributor

yep - having the same problem with the latest version. not sure how to help with debugging?

@matiasbontempo
Copy link
Author

The zooming issue is fixed in the latest version. However, now whenever you pan the view goes to the top right of the file in iOS. Should I create a new issue for this?

Thanks!

@mrharel
Copy link

mrharel commented Dec 6, 2017

We are also having some issues with iOS zooming: after zoom, the view goes to the left of the document and doesn't allow to move to the right, only up and down, and the text is very blurry. on Android, after a zoom the text is re-renderer in high quality.

img_0488

@donovantc
Copy link

I have the same issue when creating a standard react native app with the basic setup for this viewer as defined in the readme.

On iOS, when you zoom in and scroll to the right, it snaps back to the left and you can't scroll right anymore, even though the page is still scaled > 1.

This makes it almost completely unusable on iOS if you want to enable scaling. Any ideas how to resolve this?

@wonday
Copy link
Owner

wonday commented Dec 11, 2017

Please wait, I am rewriting IOS codes again, and almost finished.
It will resolve most problems.

@wonday
Copy link
Owner

wonday commented Dec 13, 2017

@ALL I rewrite the iOS codes, and commit to master.
welcome to test.

Notice:
I tested by RN 0.47.1.
RN 0.50.0+ will cause "Changing viewabilityConfig on the fly is not supported" error.
waiting RN to fix this bug.

@eballeste
Copy link

eballeste commented Dec 16, 2017

changing viewabilityConfig error can be bypassed by declaring the object as a constant outside of the render method

@wonday
Copy link
Owner

wonday commented Dec 17, 2017

@eballeste
it works, thanks.

@wonday
Copy link
Owner

wonday commented Dec 18, 2017

two many old version problems, close it.
If still have problem, please create a new one.

@wonday wonday closed this as completed Dec 18, 2017
@jjercx
Copy link

jjercx commented May 25, 2018

Hi, I have problems with iOS pinch zoom in latest version. It's not smooth at all, and the center of the PDF moves to the bottom right corner of the screen. On android looks very good. If you need, I can record my screen.

@wonday
Copy link
Owner

wonday commented May 25, 2018

Because I use TileLayer for drawing performance, when zoom, it will redraw screen with tile first, when all drawing finished, it will show at pinch center.
It is not a perfect solution.

@Jibs15
Copy link

Jibs15 commented Feb 3, 2022

I have similar blurry issue as @mrharel mentioned. Is there a solution yet? I have opened a new issue.
#634

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

8 participants