From 3b270969729229994a8608eb0a5847ee2fe7d6e2 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Sun, 24 Jan 2021 16:50:35 +0100 Subject: [PATCH] Disable hover on scroll --- ScreenPlay/qml/Installed/Installed.qml | 2 ++ ScreenPlay/qml/Installed/ScreenPlayItem.qml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ScreenPlay/qml/Installed/Installed.qml b/ScreenPlay/qml/Installed/Installed.qml index d552bc3b..b4478858 100644 --- a/ScreenPlay/qml/Installed/Installed.qml +++ b/ScreenPlay/qml/Installed/Installed.qml @@ -167,6 +167,7 @@ Item { } } property bool isDragging: false + property bool isScrolling: gridView.verticalVelocity != 0 onDragStarted: isDragging = true onDragEnded: isDragging = false onContentYChanged: { @@ -193,6 +194,7 @@ Item { absoluteStoragePath: m_absoluteStoragePath publishedFileID: m_publishedFileID itemIndex: index + isScrolling: gridView.isScrolling onOpenContextMenu: { // Set the menu to the current item informations contextMenu.publishedFileID = delegate.publishedFileID diff --git a/ScreenPlay/qml/Installed/ScreenPlayItem.qml b/ScreenPlay/qml/Installed/ScreenPlayItem.qml index a776d3ac..62b9582f 100644 --- a/ScreenPlay/qml/Installed/ScreenPlayItem.qml +++ b/ScreenPlay/qml/Installed/ScreenPlayItem.qml @@ -18,6 +18,7 @@ Item { property var type: InstalledType.Unknown property var publishedFileID: 0 property int itemIndex + property bool isScrolling: false signal openContextMenu(point position) @@ -157,7 +158,7 @@ Item { MouseArea { anchors.fill: parent - hoverEnabled: true + hoverEnabled: !root.isScrolling cursorShape: Qt.PointingHandCursor acceptedButtons: Qt.LeftButton | Qt.RightButton onEntered: {