Also disable nexus nav fade on rebound start if content smaller than height And force vertical flick only on nexus nav
31 lines
614 B
QML
31 lines
614 B
QML
import QtQuick
|
|
import qs.components
|
|
|
|
Flickable {
|
|
id: root
|
|
|
|
property bool doneFakeFlick
|
|
|
|
maximumFlickVelocity: 3000
|
|
|
|
rebound: Transition {
|
|
onRunningChanged: {
|
|
if (!running && !root.doneFakeFlick) {
|
|
root.doneFakeFlick = true;
|
|
root.flick(1, 1);
|
|
root.flick(-1, -1);
|
|
Qt.callLater(() => root.cancelFlick());
|
|
}
|
|
}
|
|
|
|
Anim {
|
|
properties: "x,y"
|
|
}
|
|
}
|
|
|
|
Timer {
|
|
running: root.doneFakeFlick
|
|
interval: 10
|
|
onTriggered: root.doneFakeFlick = false
|
|
}
|
|
}
|