Flickable
export component Example inherits Window { width: 270px; height: 100px;
Flickable { content-height: 300px; Text { x:0; y: 150px; text: "This is some text that you have to scroll to see"; } }}The Flickable is a low-level element that is the base for scrollable
widgets, such as the ScrollView or ListView.
When the content-width or the content-height is greater than the parent’s width or height
respectively, the element becomes scrollable.
When unset, the content-width and content-height are
calculated automatically based on the Flickable’s layout children,
including ones populated with a for/if.
The maximum and preferred size of the Flickable are based on the content size.
Note that the Flickable doesn’t create a scrollbar.
You can use a ScrollView instead or add your own scroll bars.
When not part of a layout, its width or height defaults to 100% of the parent element when not specified.
Pointer Event Interaction
Section titled “Pointer Event Interaction”If the Flickable’s area contains elements that use TouchArea to act on clicking, such as Button
widgets, then the following algorithm is used to distinguish between the user’s intent of scrolling or
interacting with TouchArea elements:
- If the
Flickable’sinteractiveproperty isfalse, all events are forwarded to elements underneath. Ifmouse-drag-pan-enabledisfalse, only mouse events are forwarded this way, while touch events keep panning. - If the
Flickablecan’t scroll in either direction, presses aren’t delayed. They go to the elements inside theFlickable, and then to the elements behind it. - Otherwise, the
Flickableholds back each press:- After 100ms, it delivers the press to the elements inside it. Moves that don’t start a flick don’t reset or cancel this delay.
- If the release comes before the 100ms elapse, the press and the release are delivered right away.
- If no element inside the
Flickablehandles the press, and it doesn’t start a flick, the click goes to the parent elements of theFlickable, but not to other elements behind it. They receive the press together with the release.
- Dragging more than 8 logical pixels (10 on iOS) along an axis the
Flickablecan scroll starts a flick. If an element inside already received the press, the drag must start within 500ms of the press, and that element’s press is canceled. After 500ms, the element keeps the press and theFlickabledoesn’t scroll.
Wheel/Scroll Event Interaction
Section titled “Wheel/Scroll Event Interaction”The Flickable also supports scrolling with the mouse wheel and touchpad scroll gestures.
It will scroll regardless of the interactive and mouse-drag-pan-enabled properties.
If the Flickable can scroll in the event’s direction, the event will be intercepted.
If the Flickable can’t scroll in the direction of the event, the event will be forwarded to the parent.
Scrolling Programmatically
Section titled “Scrolling Programmatically”Call scroll-to() to scroll to a position in the content.
To bring an element inside the Flickable into view, call
ensure-visible() on that element instead.
Properties
Section titled “Properties”interactive
Section titled “interactive”booldefault: true
Flickable { interactive: false;}
When false, the content can’t be panned by the user, neither by dragging with the mouse nor with touch.
mouse-drag-pan-enabled
Section titled “mouse-drag-pan-enabled”booldefault: true
When true, the content can be scrolled by clicking on it and dragging it with the cursor.
Panning with a touch screen is only affected by interactive.
content-width
Section titled “content-width”lengthdefault: 0px
The total width of the scrollable content.
content-height
Section titled “content-height”lengthdefault: 0px
The total height of the scrollable content.
content-x
Section titled “content-x”length(in-out)default: 0px
The position of the scrollable content relative to the Flickable. This is usually a negative value.
content-y
Section titled “content-y”length(in-out)default: 0px
The position of the scrollable content relative to the Flickable. This is usually a negative value.
Functions
Section titled “Functions”scroll-to(pos: Point, behavior: ScrollBehavior)
Section titled “scroll-to(pos: Point, behavior: ScrollBehavior)”Scrolls so that the point pos of the content is at the top-left corner of the Flickable.
pos is in content coordinates, so it’s positive where content-x and content-y are usually negative.
For example, scroll-to({ x: 0px, y: 100px }, ScrollBehavior.instant) sets content-y to -100px.
A pos outside the scrollable range is clamped to it.
Pass ScrollBehavior.instant to jump or ScrollBehavior.smooth to animate.
Callbacks
Section titled “Callbacks”flicked()
Section titled “flicked()”Invoked when content-x or content-y is changed by a user action (dragging, scrolling).
© 2026 SixtyFPS GmbH