mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -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),
|
window_id: WindowId(window::Id),
|
||||||
event: WindowEvent::MouseInput {
|
event: WindowEvent::MouseInput {
|
||||||
device_id: DeviceId(device::Id(pointer_id)),
|
device_id: DeviceId(device::Id(pointer_id)),
|
||||||
state: ElementState::Released,
|
state: ElementState::Pressed,
|
||||||
button,
|
button,
|
||||||
modifiers,
|
modifiers,
|
||||||
},
|
},
|
||||||
@@ -139,7 +139,7 @@ impl<T> WindowTarget<T> {
|
|||||||
window_id: WindowId(window::Id),
|
window_id: WindowId(window::Id),
|
||||||
event: WindowEvent::MouseInput {
|
event: WindowEvent::MouseInput {
|
||||||
device_id: DeviceId(device::Id(pointer_id)),
|
device_id: DeviceId(device::Id(pointer_id)),
|
||||||
state: ElementState::Pressed,
|
state: ElementState::Released,
|
||||||
button,
|
button,
|
||||||
modifiers,
|
modifiers,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user