nosignal-shell/components/containers/StyledFlickable.qml
2 * r + 2 * t 4586c2eac9 fix: flickable positions not updating on rebound
Also disable nexus nav fade on rebound start if content smaller than
height
And force vertical flick only on nexus nav
2026-06-04 16:28:26 +10:00

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
}
}