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.
This commit is contained in:
Ismael Asensio 2022-02-02 21:22:12 +01:00
parent 4b97bc481e
commit 3f29ad6b22

View file

@ -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