Commit 204467d4 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Add some extra checks to improve the keyboard scrolling

BUG: 388745
parent 763235f4
......@@ -31,8 +31,11 @@ Kirigami.ScrollablePage
if (root.flickable.atYEnd)
return;
root.flickable.contentY += root.flickable.height
root.flickable.returnToBounds()
if (root.flickable.contentY + root.flickable.height > root.flickable.contentHeight) {
root.flickable.contentY += root.flickable.height
} else {
root.flickable.contentY = root.flickable.contentHeight - root.flickable.height
}
}
}
......@@ -43,8 +46,11 @@ Kirigami.ScrollablePage
if (root.flickable.atYBeginning)
return;
root.flickable.contentY -= root.flickable.height
root.flickable.returnToBounds()
if (root.flickable.contentY > root.flickable.height) {
root.flickable.contentY -= root.flickable.height
} else {
root.flickable.contentY = 0
}
}
}
......
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