mirror of
https://github.com/rustdesk/qemu-display.git
synced 2026-10-26 06:00:44 +00:00
rdw: round relative mouse motion
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
1 parent
71e0d57efb
commit
bb9b4df587
1 file changed
+1
-1
@@ -93,7 +93,7 @@ mod imp {
|
|||||||
.connect_motion_relative(clone!(@weak self as this => move |_, dx, dy| {
|
.connect_motion_relative(clone!(@weak self as this => move |_, dx, dy| {
|
||||||
log::debug!("motion-relative: {:?}", (dx, dy));
|
log::debug!("motion-relative: {:?}", (dx, dy));
|
||||||
MainContext::default().spawn_local(clone!(@weak this => async move {
|
MainContext::default().spawn_local(clone!(@weak this => async move {
|
||||||
let _ = this.obj().console().mouse.rel_motion(dx as _, dy as _).await;
|
let _ = this.obj().console().mouse.rel_motion(dx.round() as _, dy.round() as _).await;
|
||||||
}));
|
}));
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user