You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Be-ing
changed the title
callback for when ScrollView is scrolled
callback for when Flickable is scrolled
Aug 6, 2022
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.
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.
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.
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.
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
andviewport-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 whenviewport-y
changes, or if there is, it isn't documented. With ascrolled
callback, I could determine when more data needs to be fetched.The text was updated successfully, but these errors were encountered: