From ca7b79e0b759365e318ff6b2de10dba351bf54a0 Mon Sep 17 00:00:00 2001 From: Micah Stanley Date: Sun, 10 Nov 2024 00:05:10 +0000 Subject: [PATCH] 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. --- .../homescreens/folio/package/contents/ui/FolderView.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/containments/homescreens/folio/package/contents/ui/FolderView.qml b/containments/homescreens/folio/package/contents/ui/FolderView.qml index dda21fd9..53c415eb 100644 --- a/containments/homescreens/folio/package/contents/ui/FolderView.qml +++ b/containments/homescreens/folio/package/contents/ui/FolderView.qml @@ -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