Properly set event.buttons value on mousemove

This commit is contained in:
Paul Rouget 2019-11-11 15:57:19 +01:00
parent f7fb130a2a
commit 42ee1a86f6
3 changed files with 6 additions and 5 deletions

View file

@ -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); });
}
}