Fix mouse release/press events
This commit is contained in:
parent
7f2ba0ee3e
commit
de120280e3
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue