Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't consume unused scroll events #2397

Merged
merged 3 commits into from
Apr 23, 2024

Conversation

Koranir
Copy link
Contributor

@Koranir Koranir commented Apr 21, 2024

If the viewport of a scrollable is not changed by an event, it did not consume it. This updates the code to reflect that.

(This means that scrollables can be nested and scroll the parent scrollable if an end is reached, and that horizontal scrollables can be put in vertical ones with no issue)

This is not mutually exclusive with #2381, but that would need some sort of heuristic to determine whether a scroll was active recently.

@hecrj hecrj added this to the 0.13 milestone Apr 23, 2024
@hecrj hecrj added bug Something isn't working widget fix labels Apr 23, 2024
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks 🥳

@hecrj hecrj enabled auto-merge (squash) April 23, 2024 00:38
@hecrj hecrj merged commit fdcec03 into iced-rs:master Apr 23, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants