Skip to content

Make executing synthesized pinch zoom more similar to zoom - #8223

Merged
bors-servo merged 1 commit into
servo:masterfrom
mrobinson:pinch-zoom-2
Nov 3, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
mrobinson:pinch-zoom-2

Conversation

@mrobinson

Copy link
Copy Markdown
Member

Synthesized pinch zoom was removed in #8121 so that this combination of
mouse wheel and key press can be handled by the page. I mistakenly
re-implemented it #8215. In order to preserve synthesized pinch zoom,
which is very useful for testing on desktop computers, have it work
similarly to page zoom except with the ALT key pressed.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 27, 2015
@mrobinson

Copy link
Copy Markdown
Member Author

cc @jdm @glennw

@jdm

jdm commented Oct 27, 2015

Copy link
Copy Markdown
Member

This seems like a good solution to me, but I'm having a hard time understanding how the masking works, since it doesn't seem to actually check for the presence of Alt.

@mrobinson

Copy link
Copy Markdown
Member Author

@jdm The masking was trickier than I expected, but I think the latest version properly checks for Alt.

@jdm

jdm commented Oct 27, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+
Thanks!

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 4955037 has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 27, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 4955037 with merge a65680a...

bors-servo pushed a commit that referenced this pull request Oct 27, 2015
Make executing synthesized pinch zoom more similar to zoom

Synthesized pinch zoom was removed in #8121 so that this combination of
mouse wheel and key press can be handled by the page. I mistakenly
re-implemented it #8215. In order to preserve synthesized pinch zoom,
which is very useful for testing on desktop computers, have it work
similarly to page zoom except with the ALT key pressed.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8223)
<!-- Reviewable:end -->
Comment thread ports/glutin/window.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect; it's equivalent to a wildcard. It binds to a new variable named _control_and_alt rather than comparing to the existing one.

@mbrubeck

Copy link
Copy Markdown
Contributor

@bors-servo r-

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

Synthesized pinch zoom was removed in servo#8121 so that this combination of
mouse wheel and key press can be handled by the page. I mistakenly
re-implemented it servo#8215. In order to preserve synthesized pinch zoom,
which is very useful for testing on desktop computers, have it work
similarly to page zoom except with the ALT key pressed.
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 27, 2015
@mrobinson

Copy link
Copy Markdown
Member Author

I think the latest version fixes the issue. Thanks again, @mbrubeck, for catching that.

@pcwalton

pcwalton commented Nov 2, 2015

Copy link
Copy Markdown
Contributor

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit f71f7ba has been approved by pcwalton

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 2, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit f71f7ba with merge 8dd11cc...

bors-servo pushed a commit that referenced this pull request Nov 3, 2015
Make executing synthesized pinch zoom more similar to zoom

Synthesized pinch zoom was removed in #8121 so that this combination of
mouse wheel and key press can be handled by the page. I mistakenly
re-implemented it #8215. In order to preserve synthesized pinch zoom,
which is very useful for testing on desktop computers, have it work
similarly to page zoom except with the ALT key pressed.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8223)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

⛄ The build was interrupted to prioritize another pull request.

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit f71f7ba with merge 549f166...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 3, 2015
@jdm

jdm commented Nov 3, 2015

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit f71f7ba with merge 526a3c8...

bors-servo pushed a commit that referenced this pull request Nov 3, 2015
Make executing synthesized pinch zoom more similar to zoom

Synthesized pinch zoom was removed in #8121 so that this combination of
mouse wheel and key press can be handled by the page. I mistakenly
re-implemented it #8215. In order to preserve synthesized pinch zoom,
which is very useful for testing on desktop computers, have it work
similarly to page zoom except with the ALT key pressed.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8223)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Nov 3, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit f71f7ba into servo:master Nov 3, 2015
@mrobinson
mrobinson deleted the pinch-zoom-2 branch November 3, 2015 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants