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

on_scroll is not fired when scrolling via operations #2437

Open
2 tasks done
lufte opened this issue May 10, 2024 · 0 comments · May be fixed by #2438
Open
2 tasks done

on_scroll is not fired when scrolling via operations #2437

lufte opened this issue May 10, 2024 · 0 comments · May be fixed by #2438
Labels
bug Something isn't working

Comments

@lufte
Copy link
Contributor

lufte commented May 10, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

When scrolling via scroll_to or snap_to, the callback passed through on_scroll is not fired, hiding thus vital information about the current offset of the scrollable that can't be queried through other means.

If I show a percentage indicator of some scrollable in my app and perform a scroll_to operation, I don't know what's the new relative offset.

What is the expected behavior?

on_scroll should fire on every scrolling event.

Version

crates.io release

Operating System

Linux

Do you have any log output?

No response

@lufte lufte added the bug Something isn't working label May 10, 2024
@Koranir Koranir linked a pull request May 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant