mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
homescreens/folio: Fix overscroll in app drawer
This commit is contained in:
parent
b51024c272
commit
9fb2951384
1 changed files with 3 additions and 2 deletions
|
|
@ -23,7 +23,6 @@ MobileShell.GridView {
|
|||
|
||||
property var homeScreen
|
||||
|
||||
|
||||
readonly property int reservedSpaceForLabel: Folio.HomeScreenState.pageDelegateLabelHeight
|
||||
readonly property real effectiveContentWidth: width - leftMargin - rightMargin
|
||||
readonly property real horizontalMargin: Math.round(width * 0.05)
|
||||
|
|
@ -53,7 +52,9 @@ MobileShell.GridView {
|
|||
}
|
||||
|
||||
function onAppDrawerGridYChanged(y) {
|
||||
root.contentY = Math.max(0, root.contentY - y);
|
||||
const maxContentY = Math.max(0, root.contentHeight - root.height);
|
||||
const minContentY = 0;
|
||||
root.contentY = Math.min(maxContentY, Math.max(minContentY, root.contentY - y));
|
||||
velocityCalculator.changePosition(root.contentY);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue