Skip to content

Commit

Permalink
[PQFileView] mapFromGlobal breaks point down into x/y
Browse files Browse the repository at this point in the history
  • Loading branch information
luspi committed May 11, 2023
1 parent e7bbd2d commit 4b59236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qml/filedialog/parts/PQFileView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ GridView {
onMousePosChanged: {
if(files_grid.currentIndex == -1)
return
var pos = files_grid.mapFromGlobal(variables.mousePos)
var pos = files_grid.mapFromGlobal(variables.mousePos.x,variables.mousePos.y)
if(pos.x < 0 || pos.x > files_grid.width || pos.y < 0 || pos.y > files_grid.height)
files_grid.currentIndex = -1
}
Expand Down

0 comments on commit 4b59236

Please sign in to comment.