Skip to content

Expose historical touch events - #4696

Draft
Murmele wants to merge 6 commits into
rust-windowing:masterfrom
slint-ui:mm/move_history
Draft

Murmele wants to merge 6 commits into
rust-windowing:masterfrom
slint-ui:mm/move_history

Conversation

@Murmele

@Murmele Murmele commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor
  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality

Android and Ios do not publish touch events for every single touch movement, but collect them and publish them lower frequent. Using only the lower frequent events, velocity estimation is not appropriate (For a 50ms gesture we would get with 60Hz only 3 events).

Android and Apple expose additional touch event history which can be used.

Implemented for:

  • Android
  • IOs
  • Wayland
  • X11

@kchibisov We could further discuss if we wanna collect all events and send it out whenever the frame event occured? https://wayland-book.com/seat/touch.html (Clients should accumulate all wl_touch events as they're received, then process pending inputs as a single touch event when the "frame" event is received.)

Murmele and others added 5 commits September 25, 2026 11:02
#Conflicts:
#	winit-core/src/event.rs
#	winit-core/src/event_loop/mod.rs
#	winit-wayland/src/seat/touch/mod.rs

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant