fix clicking on empty space in row not opening file

This commit is contained in:
PureCS 2024-03-28 20:50:19 +00:00
parent 13bf3cd841
commit 48adf044d5

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -484,8 +484,8 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File
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()));
}
});