mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #20766 - mrobinson:fix-scrolling-issue, r=gw3583
Generate a frame when a transaction scrolls This no longer happens automatically in WebRender, so we must do it manually. Fixes #20762. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #20762. <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because Servo does not currently test scrolling in a reliable way. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/20766) <!-- Reviewable:end -->
This commit is contained in:
commit
0a0f0d1c41
1 changed files with 1 additions and 0 deletions
|
@ -937,6 +937,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
let cursor = webrender_api::WorldPoint::from_untyped(&cursor);
|
||||
let mut txn = webrender_api::Transaction::new();
|
||||
txn.scroll(scroll_location, cursor);
|
||||
txn.generate_frame();
|
||||
self.webrender_api.send_transaction(self.webrender_document, txn);
|
||||
self.waiting_for_results_of_scroll = true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue