Skip to content

Commit

Permalink
fix: cannot turn page by page turning indicator after the right mouse…
Browse files Browse the repository at this point in the history
… clicked

cannot turn page by page turning indicator after the right mouse clicked
adopt evasive methods for Qt's bug:https://bugreports.qt.io/browse/QTBUG-125139

Log: fix cannot turn page by page turning indicator after the right mouse clicked
Issue: linuxdeepin/developer-center#8475
Influence: can turn page by page turning indicator after the right mouse
  • Loading branch information
yixinshark committed May 9, 2024
1 parent ae958b2 commit 01b1a2e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions qml/FullscreenFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,17 @@ Control {
folderId: 0
}

MouseArea {
anchors.fill: parent
acceptedButtons: Qt.RightButton
onClicked: {
// FIXME: prevent the bug:https://bugreports.qt.io/browse/QTBUG-125139;
if (mouse.button === Qt.RightButton) {
mouse.accepted = false;
}
}
}

GridViewContainer {
id: gridViewContainer
objectName: "gridViewContainer"
Expand Down

0 comments on commit 01b1a2e

Please sign in to comment.