From 3f29ad6b221ece04882f4832bdbfa644dc8687e5 Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Wed, 2 Feb 2022 21:22:12 +0100 Subject: [PATCH] effects/overview: Prevent undesired dragging of desktops bar Flickable by default allows swiping via click-and-drag or scrolling with the mousewheel, which is weird when the content is smaller than the available space. Inhibit this behavior unless there's a need for scrolling. --- src/effects/overview/qml/DesktopBar.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/effects/overview/qml/DesktopBar.qml b/src/effects/overview/qml/DesktopBar.qml index e7fcb9da27..529e9717c4 100644 --- a/src/effects/overview/qml/DesktopBar.qml +++ b/src/effects/overview/qml/DesktopBar.qml @@ -32,6 +32,7 @@ Item { topMargin: Math.max((height - contentHeight) / 2, 0) contentWidth: contentItem.childrenRect.width contentHeight: contentItem.childrenRect.height + interactive: contentWidth > width clip: true flickableDirection: Flickable.HorizontalFlick