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

Retina Hidpi display #2

Open
typometre opened this issue Apr 27, 2018 · 1 comment
Open

Retina Hidpi display #2

typometre opened this issue Apr 27, 2018 · 1 comment

Comments

@typometre
Copy link

Hi,
That's great. But it doesn't work at best on mobile devices or generally hidpi screens.

I have found that if I change a value in the viewport definition
var viewport = page.getViewport(domMapObject.canvas.width / page.getViewport(0.5).width);
instead of
var viewport = page.getViewport(domMapObject.canvas.width / page.getViewport(1).width);
on line 818 of app.js

make it work at retina resolution

But it works only at first. when you change page and revert back, the page is left black.

I can't find what happen when it go back to a page already drawn and why it left it all black.

How could I fix this ?
Where the viewport value is reset in some way ?

Thanks

@typometre
Copy link
Author

As on an Ipad, I can see that if I rotate the iPad, the page appear so this seems to be a refresh view issue.
Any idea where this could be located ?

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

1 participant