Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Fix pinch-to-zoom disabling - #11326

Closed
as-cii wants to merge 2 commits into
masterfrom
as-fix-pinch-to-zoom
Closed

as-cii wants to merge 2 commits into
masterfrom
as-fix-pinch-to-zoom

Conversation

@as-cii

@as-cii as-cii commented Mar 31, 2016

Copy link
Copy Markdown
Contributor

Fixes #8850.

There seems to be an issue with how Chromium handles the input data for the setZoomLevelLimits API: I suspect there's some kind of guard clause that ignores that function call whenever the min and the max level limits are the same.

As a stopgap measure, I have changed the max limit to be slightly larger than the minimum so that the configuration gets enforced by Chromium without actually allowing the user to zoom.

/cc: @zcbenz for 👀 on the electron side.
/cc: @atom/core

@nathansobo

Copy link
Copy Markdown
Contributor

Wow the magic of floating point. So it doesn't zoom with this value? Can you add a comment to this code line for posterity?

@as-cii

as-cii commented Mar 31, 2016

Copy link
Copy Markdown
Contributor Author

Wow the magic of floating point. So it doesn't zoom with this value?

Yeah, I cannot reproduce the problem with my Macbook's trackpad.

Can you add a comment to this code line for posterity?

👍


@atom/feedback: could you try this out and see if it works for you as well? Reproduction steps can be found in #8850. Thanks! 🙇

@mnquintana

Copy link
Copy Markdown
Contributor

Huh, I can't reproduce this on master anymore at 0f615ff ¯_(ツ)_/¯

@joshaber

Copy link
Copy Markdown
Contributor

Huh, I can't reproduce this on master anymore at 0f615ff ¯(ツ)/¯

Huh, I can't either.

@as-cii

as-cii commented Mar 31, 2016

Copy link
Copy Markdown
Contributor Author

I tried running script/bootstrap on master and now I can't reproduce either.

I am a little lost honestly... Maybe some outdated package that caused this to fail? I'll keep trying to reproduce it. 😞

@as-cii

as-cii commented Apr 1, 2016

Copy link
Copy Markdown
Contributor Author

Okay, I think I found what's wrong. Will open a PR in a bit to show the problem and a solution. Thanks everyone for the feedback! ✨

@as-cii as-cii closed this Apr 1, 2016
@as-cii
as-cii deleted the as-fix-pinch-to-zoom branch April 1, 2016 13:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants