1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Disable hover on scroll

This commit is contained in:
Elias Steurer 2021-01-24 16:50:35 +01:00
parent 389a6991db
commit 3b27096972
2 changed files with 4 additions and 1 deletions

View File

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

View File

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