Skip to content

Fix ScrollArea scroll speed#24620

Open
Cannedfood wants to merge 1 commit into
bevyengine:mainfrom
Cannedfood:fix/scroll-area-unit-conversion
Open

Fix ScrollArea scroll speed#24620
Cannedfood wants to merge 1 commit into
bevyengine:mainfrom
Cannedfood:fix/scroll-area-unit-conversion

Conversation

@Cannedfood

@Cannedfood Cannedfood commented Jun 13, 2026

Copy link
Copy Markdown

When scrolling a ScrollArea, the scroll delta (in lines) was added to the scroll position
(in logical pixels).
This unit error made scrolling extremely slow when scroll.unit == Line.

Testing

  • Did you test these changes? If so, how?

I scrolled the lists in the demo with a touchpad (emits scroll.unit == Line), but unfortunately did not find a device that emits the scroll delta in pixels.

  • How can other people (reviewers) test your changes?
  1. cargo run --release --example feathers_gallery --features=bevy_feathers
  2. Scroll the list

When scrolling a ScrollArea, the scroll delta (in lines) was added to the scroll position
(logical pixels).
This made scrolling with a physical mouse feel extremely slow (3-4px per click, depending on OS settings).

This PR fixes the conversion
@github-actions

Copy link
Copy Markdown
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide, as well as our policy regarding AI usage, and we look forward to reviewing your pull request shortly ✨

@kfc35 kfc35 added C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy A-UI Graphical user interfaces, styles, layouts, and widgets S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jun 13, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in UI Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

2 participants