Skip to content

Scroll direction fix#71

Merged
Harzu merged 7 commits intoHarzu:masterfrom
clicman:scroll-fix
Apr 1, 2026
Merged

Scroll direction fix#71
Harzu merged 7 commits intoHarzu:masterfrom
clicman:scroll-fix

Conversation

@clicman
Copy link
Copy Markdown
Contributor

@clicman clicman commented Mar 31, 2026

This PR fixes scroll direction, reflecting operation system settings. Tested on MacOs and Linux

clicman added 7 commits March 23, 2026 00:09
Exposes the backend `Command` type at the crate root to allow reference it externally.
Previously, ScrollDelta::Pixels inverted the y-axis relative to ScrollDelta::Lines, causing natural scroll to behave incorrectly on macOS trackpads.
Since iced already normalizes scroll direction at the OS level, using += y aligns pixel scrolling with line scrolling.
Update tests to reflect the corrected behavior.
Еhe event is now dropped instead of blocking.
@Harzu Harzu merged commit fc88b61 into Harzu:master Apr 1, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants