mirror of https://github.com/wayvr-org/wayvr.git
fix: only move mouse on depress, not release
This commit is contained in:
parent
5989d32075
commit
0b087cb9a9
|
|
@ -120,6 +120,9 @@ impl InteractionHandler for ScreenInteractionHandler {
|
|||
|
||||
app.hid_provider.send_button(btn, pressed);
|
||||
|
||||
if !pressed {
|
||||
return;
|
||||
}
|
||||
let pos = self.mouse_transform.transform_point2(hit.uv);
|
||||
app.hid_provider.mouse_move(pos);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue