mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #23944 - Manishearth:hl-scroll, r=jdm
Fix scrolling on hololens This got inverted in https://github.com/servo/servo/pull/23900 by accident, mostly because the old code had two ordering mistakes that cancel each other out. r? @jdm @paulrouget <!-- 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/23944) <!-- Reviewable:end -->
This commit is contained in:
commit
2af31be4ec
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ void BrowserPage::OnSurfaceManipulationDelta(
|
||||||
auto y = e.Position().Y;
|
auto y = e.Position().Y;
|
||||||
auto dx = e.Delta().Translation.X;
|
auto dx = e.Delta().Translation.X;
|
||||||
auto dy = e.Delta().Translation.Y;
|
auto dy = e.Delta().Translation.Y;
|
||||||
RunOnGLThread([=] { mServo->Scroll(x, y, dx, dy); });
|
RunOnGLThread([=] { mServo->Scroll(dx, dy, x, y); });
|
||||||
e.Handled(true);
|
e.Handled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue