mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
stop at bounds for the top panel
This commit is contained in:
parent
7347c671a3
commit
0d3ad6fd2e
2 changed files with 2 additions and 1 deletions
|
|
@ -164,6 +164,7 @@ NanoShell.FullScreenOverlay {
|
||||||
onContentYChanged: {
|
onContentYChanged: {
|
||||||
window.offset = -contentY + contentArea.height
|
window.offset = -contentY + contentArea.height
|
||||||
}
|
}
|
||||||
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
contentWidth: window.width
|
contentWidth: window.width
|
||||||
contentHeight: window.height*2
|
contentHeight: window.height*2
|
||||||
bottomMargin: window.height
|
bottomMargin: window.height
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,7 @@ PlasmaCore.ColorScope {
|
||||||
slidingPanel.showFullScreen();
|
slidingPanel.showFullScreen();
|
||||||
}
|
}
|
||||||
onPositionChanged: {
|
onPositionChanged: {
|
||||||
slidingPanel.offset = slidingPanel.offset + (mouse.y - oldMouseY);
|
slidingPanel.offset = Math.min(slidingPanel.contentItem.height, slidingPanel.offset + (mouse.y - oldMouseY));
|
||||||
oldMouseY = mouse.y;
|
oldMouseY = mouse.y;
|
||||||
}
|
}
|
||||||
onReleased: {
|
onReleased: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue