Skip to content

Commit

Permalink
Merge pull request #32 from jfree/bug31
Browse files Browse the repository at this point in the history
fix: Single-click on frame repositions flame graph unexpectedly. #31.
  • Loading branch information
bric3 authored Mar 16, 2022
2 parents 6f77ff4 + ec763aa commit b625df7
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,12 +556,16 @@ public void linkListenerTo(JScrollPane scrollPane) {
var mouseAdapter = new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
processMinimapMouseEvent(e);
if (isInsideMinimap(e.getPoint())) {
processMinimapMouseEvent(e);
}
}

@Override
public void mouseDragged(MouseEvent e) {
processMinimapMouseEvent(e);
if (isInsideMinimap(e.getPoint())) {
processMinimapMouseEvent(e);
}
}

private void processMinimapMouseEvent(MouseEvent e) {
Expand Down

0 comments on commit b625df7

Please sign in to comment.