From 5f1ffb32f41d40e0404a81fb9b834a1f12d60a5b Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 20 Sep 2025 16:21:42 +1000 Subject: sidebar/notifs: fix interactions outside container --- modules/sidebar/NotifDockList.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/sidebar/NotifDockList.qml') diff --git a/modules/sidebar/NotifDockList.qml b/modules/sidebar/NotifDockList.qml index 0fd3464..33a9306 100644 --- a/modules/sidebar/NotifDockList.qml +++ b/modules/sidebar/NotifDockList.qml @@ -10,6 +10,7 @@ Item { id: root required property Props props + required property Flickable container readonly property alias repeater: repeater readonly property int spacing: Appearance.spacing.small @@ -59,6 +60,14 @@ Item { return y; } + containmentMask: QtObject { + function contains(p: point): bool { + if (!root.container.contains(notif.mapToItem(root.container, p))) + return false; + return notifInner.contains(p); + } + } + implicitWidth: root.width implicitHeight: notifInner.implicitHeight @@ -130,6 +139,7 @@ Item { modelData: notif.modelData props: root.props + container: root.container } Behavior on x { -- cgit v1.2.3-freya