mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Properly set event.buttons value on mousemove
This commit is contained in:
parent
f7fb130a2a
commit
42ee1a86f6
3 changed files with 6 additions and 5 deletions
|
@ -159,6 +159,7 @@ void ServoControl::OnSurfacePointerMoved(
|
|||
auto point = e.GetCurrentPoint(Panel());
|
||||
auto x = point.Position().X * mDPI;
|
||||
auto y = point.Position().Y * mDPI;
|
||||
e.Handled(true);
|
||||
RunOnGLThread([=] { mServo->MouseMove(x, y); });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue