From 67b041e231ff435e5dfb7e2b8289bc96ba66069b Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Fri, 1 Sep 2023 02:14:34 +0400 Subject: [PATCH] On Wayland, fix TouchPhase::Canceled sent for Move Fixes #3035. --- CHANGELOG.md | 1 + src/platform_impl/linux/wayland/seat/touch/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27ee45bd..6c1ae78d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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, 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 Wayland, fix `TouchPhase::Canceled` being sent for moved events. # 0.29.1-beta diff --git a/src/platform_impl/linux/wayland/seat/touch/mod.rs b/src/platform_impl/linux/wayland/seat/touch/mod.rs index e5b83868..7232b227 100644 --- a/src/platform_impl/linux/wayland/seat/touch/mod.rs +++ b/src/platform_impl/linux/wayland/seat/touch/mod.rs @@ -121,7 +121,7 @@ impl TouchHandler for WinitState { device_id: crate::event::DeviceId(crate::platform_impl::DeviceId::Wayland( DeviceId, )), - phase: TouchPhase::Cancelled, + phase: TouchPhase::Moved, location: touch_point.location.to_physical(scale_factor), force: None, id: id as u64,