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:
parent
4b97bc481e
commit
3f29ad6b22
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue