mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Disable hover on scroll
This commit is contained in:
parent
389a6991db
commit
3b27096972
@ -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
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user