mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
bound the strip at top and bottom
except in the lockscreen it will slide away
This commit is contained in:
parent
06e23491fb
commit
c096ffb366
2 changed files with 7 additions and 4 deletions
|
|
@ -18,11 +18,11 @@ Item {
|
|||
opacity: (delegateItem.drag.target != null) ? 0.4 : 0
|
||||
Behavior on opacity {
|
||||
NumberAnimation {
|
||||
duration: units.longDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
duration: units.longDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//animate index change
|
||||
onIdxChanged: {
|
||||
if (delegateItem.drag.target != null) {
|
||||
|
|
|
|||
|
|
@ -237,7 +237,10 @@ Item {
|
|||
SatelliteStripe {
|
||||
id: stripe
|
||||
z: 99
|
||||
y: Math.max(applicationsView.contentY + parent.height, parent.height - height)
|
||||
property int viewPos: applicationsView.contentItem.height * applicationsView.visibleArea.yPosition
|
||||
|
||||
y: Math.max(viewPos,
|
||||
Math.min(parent.height, viewPos + root.height) - height + Math.max(0, -(parent.height - height + applicationsView.contentY)))
|
||||
|
||||
PlasmaCore.Svg {
|
||||
id: stripeIcons
|
||||
|
|
|
|||
Loading…
Reference in a new issue