Class: FlickGesture

ui.FlickGesture

new ui.FlickGesture ()

Element for adding flick gestures to a html.MouseBox element. This element must have a html.MouseBox as ancestor.

Flicking scrolls the target element by changing the contentX and contentY properties.

Example:

MouseBox {
    fillWidth: true
    fillHeight: true

    overflowBehavior: "scroll"

    Image {
        source: "veryLargeImage.jpg"
    }

    FlickGesture { }
}
Properties:
Name Type Description
enabled bool

(default: true) Whether flicking is currently enabled.

reverseX bool

(default: false) If true, the scrolling is reversed in X direction.

reverseY bool

(default: false) If true, the scrolling is reversed in Y direction.

target html.Item

(default: parent) The target element for flicking.

Extends