Added scrolled callback to ListView and ScrollView (#5964)

This commit is contained in:
FloVanGH 2024-08-27 10:18:43 +00:00 committed by GitHub
parent f5d950cf0c
commit 039f33eaae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 88 additions and 66 deletions

View file

@ -9,6 +9,11 @@ Elements are only instantiated if they are visible
Same as [`ScrollView`](#scrollview)
### Callbacks
Same as [`ScrollView`](#scrollview)
### Example
```slint

View file

@ -18,6 +18,10 @@ using for loops may be added in the future and is tracked in issue #407.
- **`viewport-x`** and **`viewport-y`** (_in-out_ _length_): The `x` and `y` properties of the viewport. Usually these are negative
- **`visible-width`** and **`visible-height`** (_out_ _length_): The size of the visible area of the ScrollView (not including the scrollbar)
### Callbacks
- **`scrolled()`**: Invoked when `viewport-x` or `viewport-y` is changed by a user action (dragging, scrolling).
### Example
```slint