mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Fix mouse release/press events
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user