mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Added flicked
-Callback on Flickable
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.
This commit is contained in:
parent
11e8070726
commit
73e05aebdb
4 changed files with 67 additions and 8 deletions
|
@ -138,6 +138,7 @@ export component Flickable inherits Empty {
|
|||
in-out property <length> viewport-x;
|
||||
in-out property <length> viewport-y;
|
||||
in property <bool> interactive: true;
|
||||
callback flicked();
|
||||
//-default_size_binding:expands_to_parent_geometry
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue