[log] IJPL-159496 Fix right-click handled as left-click when clicking graph in log

Left-click action was performed along with showing the context menu

GitOrigin-RevId: 76f14cb3a4daa0427b2174b7c4ea81e0207949fe
This commit is contained in:
Ilia.Shulgin
2024-08-01 14:26:10 +02:00
committed by intellij-monorepo-bot
parent fb4e6e078e
commit 4953b7542b

View File

@@ -833,7 +833,8 @@ public class VcsLogGraphTable extends TableWithProgress
if ((row >= 0 && row < getRowCount()) && e.getClickCount() == 1) {
VcsLogCellController controller = getController(column);
if (controller != null) {
Cursor cursor = controller.performMouseClick(row, e);
Cursor cursor =
SwingUtilities.isLeftMouseButton(e) ? controller.performMouseClick(row, e) : null;
handleCursor(cursor);
}
}