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

Pinch to zoom #21431

Merged
merged 2 commits into from Aug 16, 2018
Merged

Pinch to zoom #21431

merged 2 commits into from Aug 16, 2018

Conversation

@paulrouget
Copy link
Contributor

paulrouget commented Aug 16, 2018

Implement pinch to zoom.

Also, I added a marker in the toolbar to show if Servo is redrawing or not.

The label switches from "IDLE" to "LOOP" when Servo is looping (at 60FPS) to redraw the page.

Redrawing is necessary for 3 reasons:

  • a CSS animation is ongoing
  • scrolling
  • zooming

This label is, for now, necessary to make sure we are not looping for not reason.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #21303 (github issue number if applicable).

This change is Reviewable

@paulrouget paulrouget force-pushed the paulrouget:pinchtozoom branch from de8c510 to 5412e7c Aug 16, 2018
@paulrouget paulrouget force-pushed the paulrouget:pinchtozoom branch from 5412e7c to 6aa653a Aug 16, 2018
@paulrouget
Copy link
Contributor Author

paulrouget commented Aug 16, 2018

Pinch to zoom works great unless there's text in the webpage.

Not sure what's going on, but 1) text glyphs are getting messed up 2) servo gets extremely slow (depending on the amount of text).

I filed an issue for this: #21432

@jdm
Copy link
Member

jdm commented Aug 16, 2018

Nice idea to add the indicator.
@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2018

📌 Commit 6aa653a has been approved by jdm

@highfive highfive assigned jdm and unassigned nox Aug 16, 2018
bors-servo added a commit that referenced this pull request Aug 16, 2018
Pinch to zoom

Implement pinch to zoom.

Also, I added a marker in the toolbar to show if Servo is redrawing or not.

The label switches from "IDLE" to "LOOP" when Servo is looping (at 60FPS) to redraw the page.

Redrawing is necessary for 3 reasons:
- a CSS animation is ongoing
- scrolling
- zooming

This label is, for now, necessary to make sure we are not looping for not reason.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21303 (github issue number if applicable).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21431)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2018

Testing commit 6aa653a with merge 14fff5b...

@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2018

@bors-servo bors-servo merged commit 6aa653a into servo:master Aug 16, 2018
3 of 4 checks passed
3 of 4 checks passed
Taskcluster (pull_request) TaskGroup: failure
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants
You can’t perform that action at this time.