Skip to content

Fix kinetic scrolling on touch devices#5778

Merged
lucasmerlin merged 1 commit intomasterfrom
lucas/fix-android-kinetic-scrolling
Mar 18, 2025
Merged

Fix kinetic scrolling on touch devices#5778
lucasmerlin merged 1 commit intomasterfrom
lucas/fix-android-kinetic-scrolling

Conversation

@lucasmerlin
Copy link
Copy Markdown
Collaborator

Fixes kinetic scrolling on android (and possibly other touch devices), by calculating the final velocity before clearing the position history on PointerGone events.

@github-actions
Copy link
Copy Markdown

Preview available at https://egui-pr-preview.github.io/pr/5778-lucasfix-android-kinetic-scrolling
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@jb55
Copy link
Copy Markdown

jb55 commented Mar 11, 2025

ACK. This fixes kinetic scrolling for us!

@lucasmerlin lucasmerlin added this to the Next Patch Release milestone Mar 11, 2025
@lucasmerlin lucasmerlin merged commit 9604dae into master Mar 18, 2025
24 of 49 checks passed
@lucasmerlin lucasmerlin deleted the lucas/fix-android-kinetic-scrolling branch March 18, 2025 10:41
darkwater pushed a commit to darkwater/egui that referenced this pull request Aug 24, 2025
Fixes kinetic scrolling on android (and possibly other touch devices),
by calculating the final velocity before clearing the position history
on PointerGone events.

* Closes emilk#5311 
* [X] I have followed the instructions in the PR template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android bug Something is broken egui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kinetic scrolling stopped working on ScrollArea on Android after 0.29 update

2 participants