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

stop at bounds for the top panel

parent 7347c671
......@@ -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
......
......@@ -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: {
......
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