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

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