forked from qt-creator/qt-creator
QmlDesigner: Disable scrolling when context menu is open
Disable components and assets views scrolling when the context menu is open. Fixes: QDS-6317 Change-Id: Ibdbf29b14d0383fd2b876c655ccb17c35fdb6aff Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
This commit is contained in:
@@ -424,7 +424,7 @@ Item {
|
||||
width: parent.width
|
||||
height: parent.height - y
|
||||
clip: true
|
||||
interactive: assetsView.verticalScrollBarVisible
|
||||
interactive: assetsView.verticalScrollBarVisible && !contextMenu.opened
|
||||
|
||||
Column {
|
||||
Repeater {
|
||||
|
@@ -246,6 +246,7 @@ Item {
|
||||
id: verticalScrollView
|
||||
anchors.fill: parent
|
||||
clip: true
|
||||
interactive: !itemContextMenu.opened && !moduleContextMenu.opened
|
||||
|
||||
onContentHeightChanged: {
|
||||
var maxPosition = Math.max(contentHeight - verticalScrollView.height, 0)
|
||||
@@ -362,6 +363,7 @@ Item {
|
||||
width: 270
|
||||
height: parent.height
|
||||
clip: true
|
||||
interactive: !itemContextMenu.opened && !moduleContextMenu.opened
|
||||
|
||||
onContentHeightChanged: {
|
||||
var maxPosition = Math.max(contentHeight - horizontalScrollView.height, 0)
|
||||
|
Reference in New Issue
Block a user