Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
TouchPhase::Ended
reporting on Wayland
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 rust-windowing#1996
- Loading branch information