Skip to content

Commit

Permalink
Merge pull request Konloch#491 from dozmus/features/fix-open-file-emp…
Browse files Browse the repository at this point in the history
…ty-space

fix clicking on empty space in row not opening file
  • Loading branch information
Konloch authored Apr 9, 2024
2 parents c2f516a + 48adf04 commit 2a9fafd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ public void mouseReleased(MouseEvent e)
this.tree.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
if(e.getButton() == MouseEvent.BUTTON1) //right-click
openPath(tree.getPathForLocation(e.getX(), e.getY()));
if (e.getButton() == MouseEvent.BUTTON1) // left-click
openPath(tree.getClosestPathForLocation(e.getX(), e.getY()));
}
});

Expand Down

0 comments on commit 2a9fafd

Please sign in to comment.