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

Consider devicePixelRatio when calculating viewport #2636

Merged
merged 1 commit into from
Sep 12, 2017

Conversation

mrmr1993
Copy link
Contributor

This should fix #2635, fix #2633 and fix #2620.

/cc @smblott-github @gdh1995

@smblott-github
Copy link
Collaborator

I should just merge this without thinking too much, yes?

@smblott-github smblott-github merged commit 6a53771 into philc:master Sep 12, 2017
@mrmr1993 mrmr1993 deleted the linkhints-scaled-display-fix branch September 12, 2017 10:19
@mrmr1993
Copy link
Contributor Author

merge this without thinking too much

I don't know much about HiDPI browsers or devicePixelRatio (or this part of the code), so it's probably worth a quick sanity check, just in case.

@gdh1995
Copy link
Contributor

gdh1995 commented Sep 13, 2017

Sorry again for my errors, but this PR is not enough yet - it causes error offsets in such a test:

  • on a screen with a devicePixelRatio of 1
  • use Chrome stable x64, 60.0.3112.113
  • zoom the page into 150% using ctrl and +, and then devicePixelRatio is 1.5
  • scroll down a page (such as this PR)
  • all hints has wrong offsets.

@troglotit troglotit mentioned this pull request Sep 14, 2017
smblott-github added a commit to smblott-github/vimium that referenced this pull request Sep 14, 2017
Mention @mrmr1993.
Mention @gdh1995.

We have zoom issues resulting from:
   - style
   - zoom
   - --force-device-scale-factor=1.5
   - HiDPI

This intended to fix HiDPI, but seems to have created problems in the
some of the other cases.

I don't have time to figure out the problem right now, so I'm going to
revert this and push it as 1.60.2.

That leaves us pretty much where we were before, I think, in terms of
zoom.

We can come back to it later.
smblott-github added a commit that referenced this pull request Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants