On Wayland, fix TouchPhase::Canceled sent for Move

Fixes #3035.
This commit is contained in:
Kirill Chibisov 2023-09-01 02:14:34 +04:00 committed by GitHub
parent 6dfc78fb50
commit 67b041e231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -17,6 +17,7 @@ And please only add new entries to the top of this list, right below the `# Unre
- On Web, enable event propagation and let `DeviceEvent`s appear after `WindowEvent`s. - On Web, enable event propagation and let `DeviceEvent`s appear after `WindowEvent`s.
- On Web, take all transient activations on the canvas and window into account to queue a fullscreen request. - On Web, take all transient activations on the canvas and window into account to queue a fullscreen request.
- On Web, remove any fullscreen requests from the queue when an external fullscreen activation was detected. - On Web, remove any fullscreen requests from the queue when an external fullscreen activation was detected.
- On Wayland, fix `TouchPhase::Canceled` being sent for moved events.
# 0.29.1-beta # 0.29.1-beta

View file

@ -121,7 +121,7 @@ impl TouchHandler for WinitState {
device_id: crate::event::DeviceId(crate::platform_impl::DeviceId::Wayland( device_id: crate::event::DeviceId(crate::platform_impl::DeviceId::Wayland(
DeviceId, DeviceId,
)), )),
phase: TouchPhase::Cancelled, phase: TouchPhase::Moved,
location: touch_point.location.to_physical(scale_factor), location: touch_point.location.to_physical(scale_factor),
force: None, force: None,
id: id as u64, id: id as u64,