mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Fix mouse release/press events
This commit is contained in:
parent
7f2ba0ee3e
commit
de120280e3
|
@ -126,7 +126,7 @@ impl<T> WindowTarget<T> {
|
|||
window_id: WindowId(window::Id),
|
||||
event: WindowEvent::MouseInput {
|
||||
device_id: DeviceId(device::Id(pointer_id)),
|
||||
state: ElementState::Released,
|
||||
state: ElementState::Pressed,
|
||||
button,
|
||||
modifiers,
|
||||
},
|
||||
|
@ -139,7 +139,7 @@ impl<T> WindowTarget<T> {
|
|||
window_id: WindowId(window::Id),
|
||||
event: WindowEvent::MouseInput {
|
||||
device_id: DeviceId(device::Id(pointer_id)),
|
||||
state: ElementState::Pressed,
|
||||
state: ElementState::Released,
|
||||
button,
|
||||
modifiers,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue