Commit 17c61127 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't scroll up if on top, don't scroll down if at the bottom

CCBUG: 388745
parent f0dc351a
......@@ -28,6 +28,9 @@ Kirigami.ScrollablePage
sequence: StandardKey.MoveToNextPage
enabled: root.isCurrentPage
onActivated: {
if (root.flickable.atYEnd)
return;
root.flickable.contentY += root.flickable.height
root.flickable.returnToBounds()
}
......@@ -37,6 +40,9 @@ Kirigami.ScrollablePage
sequence: StandardKey.MoveToPreviousPage
enabled: root.isCurrentPage
onActivated: {
if (root.flickable.atYBeginning)
return;
root.flickable.contentY -= root.flickable.height
root.flickable.returnToBounds()
}
......
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