stop at bounds for the top panel

This commit is contained in:
Marco Martin 2019-10-11 15:21:24 +02:00
parent 7347c671a3
commit 0d3ad6fd2e
2 changed files with 2 additions and 1 deletions

View file

@ -164,6 +164,7 @@ NanoShell.FullScreenOverlay {
onContentYChanged: {
window.offset = -contentY + contentArea.height
}
boundsBehavior: Flickable.StopAtBounds
contentWidth: window.width
contentHeight: window.height*2
bottomMargin: window.height

View file

@ -252,7 +252,7 @@ PlasmaCore.ColorScope {
slidingPanel.showFullScreen();
}
onPositionChanged: {
slidingPanel.offset = slidingPanel.offset + (mouse.y - oldMouseY);
slidingPanel.offset = Math.min(slidingPanel.contentItem.height, slidingPanel.offset + (mouse.y - oldMouseY));
oldMouseY = mouse.y;
}
onReleased: {