Fix mouse release/press events

This commit is contained in:
Héctor Ramón Jiménez 2019-06-29 17:48:22 +02:00
parent 7f2ba0ee3e
commit de120280e3

View file

@ -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,
},