You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We didn't bind the zoom gestures with the new android port.
This should work a lot like scrolling.
First, in ServoView.java, we should use the GestureDetector to detect the gesture. When the gesture starts, we should start looping the same way we do for the flinging gesture (see doFrame).
Then, in libsimpleservo we should add a function to set the zoom level.
The text was updated successfully, but these errors were encountered:
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 -->
#20912 followup
We didn't bind the zoom gestures with the new android port.
This should work a lot like scrolling.
First, in ServoView.java, we should use the GestureDetector to detect the gesture. When the gesture starts, we should start looping the same way we do for the flinging gesture (see
doFrame
).Then, in libsimpleservo we should add a function to set the zoom level.
The text was updated successfully, but these errors were encountered: