Commit 0c6d19e8 authored by Marco Martin's avatar Marco Martin
Browse files

return to bounds after flicking

parent ae67112a
......@@ -189,6 +189,8 @@ NanoShell.FullScreenOverlay {
height: window.height
contentWidth: width
contentHeight: mainArea.implicitHeight
// topMargin: flickingVertically ? -height : 0
// bottomMargin: flickingVertically ? -height : 0
property int flickState: TaskSwitcher.MovementDirection.None
readonly property int movementDirection: {
......@@ -207,10 +209,12 @@ NanoShell.FullScreenOverlay {
if (flickingVertically) {
flickState = verticalVelocity < 0 ? TaskSwitcher.MovementDirection.Up : TaskSwitcher.MovementDirection.Down;
} else if (/*!draggingVertically &&*/ !flickingVertically) {
draggingVerticallyChanged();
flickState = TaskSwitcher.MovementDirection.None
}
Qt.callLater(function() {
tasksView.topMargin = flickingVertically && !scrollAnim.running ? -tasksView.height : 0;
tasksView.bottomMargin = tasksView.topMargin;
});
}
onDraggingVerticallyChanged: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment