Handcursor for Alt+click when there is item to go to

This commit is contained in:
Jindra Petřík
2022-12-17 14:16:29 +01:00
parent 56285b4b44
commit 0dcb1af592

View File

@@ -2620,7 +2620,11 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
if (freeTransformDepth == -1) {
Cursor newCursor;
if (iconPanel.isAltDown()) {
newCursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
if (depthStateUnderCursor == null) {
newCursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
} else {
newCursor = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);
}
} else if (handCursor) {
newCursor = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);
} else if (iconPanel.hasAllowMove()) {