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 support #20109
Comments
Isn't that the job of the embedder to track the TouchId and do the zooming? |
It's hard to let the embedder do that because the behavior can depend on whether preventDefault() was called on the touchstart event. But actually there seems to be support in |
It should work like key events. Embedder send touch events to Servo, if Servo send them back, the embedder call the zoom functions. |
Basic pinch zoom handling r? glennw Basic fix for #20387 and #20109. Note: Without calling `generate_frame` when updating Webrender's pinch zoom level, rendering doesn't happen reliably during/after a pinch zoom gesture. I'm not sure whether this is the correct way to fix that or not. <!-- 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/20749) <!-- Reviewable:end -->
Basic pinch zoom handling r? glennw Basic fix for #20387 and #20109. Note: Without calling `generate_frame` when updating Webrender's pinch zoom level, rendering doesn't happen reliably during/after a pinch zoom gesture. I'm not sure whether this is the correct way to fix that or not. <!-- 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/20749) <!-- Reviewable:end -->
Fixed by #20749. |
When an embedder sends a sequence of touch events such as:
TouchEventType::Down, one or more TouchEventType::Move, TouchEventType::Up these are correctly used to pan the page and/or synthetized a click.
However when there are multiple TouchId tracked, they are not taken into account to provide a pinch to zoom functionality.
The text was updated successfully, but these errors were encountered: