mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
homescreen/folio: Fix folder apps still being Interactable when outside current page
This fixes an issue where apps in the folder can still be interacted with when outside the current page.
This commit is contained in:
parent
f52bf0bd71
commit
ca7b79e0b7
1 changed files with 6 additions and 0 deletions
|
|
@ -176,6 +176,11 @@ Folio.DelegateTouchArea {
|
|||
readonly property int cellWidth: folio.HomeScreenState.pageCellWidth
|
||||
readonly property int cellHeight: folio.HomeScreenState.pageCellHeight
|
||||
|
||||
readonly property bool outsideView: {
|
||||
const appPosition = x + folio.HomeScreenState.folderViewX;
|
||||
return (appPosition < -folderCellSize || appPosition > folderBackground.width)
|
||||
}
|
||||
|
||||
readonly property var dragState: folio.HomeScreenState.dragState
|
||||
readonly property bool isDropPositionThis: dragState.candidateDropPosition.location === Folio.DelegateDragPosition.Folder &&
|
||||
dragState.candidateDropPosition.folderPosition === index
|
||||
|
|
@ -235,6 +240,7 @@ Folio.DelegateTouchArea {
|
|||
|
||||
// do not show if the drop animation is running to this delegate
|
||||
visible: !(root.homeScreen.dropAnimationRunning && delegate.isDropPositionThis)
|
||||
enabled: !delegate.outsideView
|
||||
|
||||
// don't show label in drag and drop mode
|
||||
labelOpacity: delegate.opacity
|
||||
|
|
|
|||
Loading…
Reference in a new issue