diff --git a/src/platform_impl/web/event_loop/window_target.rs b/src/platform_impl/web/event_loop/window_target.rs index c8e608e4..17ba26ae 100644 --- a/src/platform_impl/web/event_loop/window_target.rs +++ b/src/platform_impl/web/event_loop/window_target.rs @@ -126,7 +126,7 @@ impl WindowTarget { 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 WindowTarget { window_id: WindowId(window::Id), event: WindowEvent::MouseInput { device_id: DeviceId(device::Id(pointer_id)), - state: ElementState::Pressed, + state: ElementState::Released, button, modifiers, },