mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53: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: {
|
||||
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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue