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

callback for when Flickable is scrolled #1462

Open
Be-ing opened this issue Aug 6, 2022 · 1 comment
Open

callback for when Flickable is scrolled #1462

Be-ing opened this issue Aug 6, 2022 · 1 comment
Labels
a:flickable The implementation of the Flickable (mO) enhancement New feature or request

Comments

@Be-ing
Copy link
Contributor

Be-ing commented Aug 6, 2022

My application uses a ListView to display data from a database. Data is fetched from the database asynchronously in paginated chunks. Presently it seems there isn't a means for the application to determine when to fetch the next page from the database. The viewport-y and viewport-height properties could be used to calculate the relative position of the scrollbar within the data already being displayed. However, there is no callback to hook into when viewport-y changes, or if there is, it isn't documented. With a scrolled callback, I could determine when more data needs to be fetched.

@Be-ing Be-ing changed the title callback for when ScrollView is scrolled callback for when Flickable is scrolled Aug 6, 2022
@ogoffart ogoffart added the enhancement New feature or request label Nov 29, 2022
@uklotzde
Copy link

uklotzde commented Apr 3, 2023

Any updates on this issue? Infinite scrolling is a common feature nowadays. Without any feedback when reaching the end of the list (i.e. when scrolling has stopped) this could not be implemented.

@ogoffart ogoffart added the a:flickable The implementation of the Flickable (mO) label Jul 13, 2023
pfzetto added a commit to pfzetto/slint that referenced this issue Feb 15, 2024
As requested in slint-ui#1462, I've added a `scrolled`-Callback that gets
triggered when the `viewport_x`- or `viewport_y` -Properties are changed
by a mouse drag or mouse wheel movement.
pfzetto added a commit to pfzetto/slint that referenced this issue Feb 16, 2024
As requested in slint-ui#1462, I've added a `flicked`-Callback that gets
triggered when the `viewport_x`- or `viewport_y` -Properties are changed
by a mouse drag or mouse wheel movement.
ogoffart pushed a commit that referenced this issue Feb 26, 2024
As requested in #1462, I've added a `flicked`-Callback that gets
triggered when the `viewport_x`- or `viewport_y` -Properties are changed
by a mouse drag or mouse wheel movement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:flickable The implementation of the Flickable (mO) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants