mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
a58400a82c
When all the receive from the compositor is `TouchEvent::Down` and `TouchEvent::Up` for the same id, we would record the touch position in the touch_points vector the first time. On `TouchEvent::Up` we'd find it and report `TouchPhase::Ended` with that location. The next time we receive `TouchEvent::Down` for the same id, we'd however unconditionally append a new `TouchPoint` to `inner.touch_points`, with the new position. On release however we'd find the earlier point and report its location, which basically means that `TouchPhase::Ended` always and forever reported the location of the very first touch down event. Instead, this patch updates an existing touch point location with the same id on `TouchDown`. Fixes #1996 |
||
---|---|---|
.. | ||
android | ||
ios | ||
linux | ||
macos | ||
web | ||
windows | ||
mod.rs |