Skip to content

Commit

Permalink
chore(flamegraph): Try consuming mouse event when button is clicked
Browse files Browse the repository at this point in the history
Refs: #94
  • Loading branch information
bric3 committed Jul 27, 2022
1 parent 4ac6781 commit 36e7f86
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ protected void processMouseEvent(MouseEvent e, JLayer<? extends JScrollPane> lay
if (id == MouseEvent.MOUSE_CLICKED) {
if (buttonRect.contains(currentMousePoint)) {
scrollBackToTop(layer.getView());
e.consume();
}
} else if (id == MouseEvent.MOUSE_PRESSED && viewRect.y > 0 && buttonRect.contains(currentMousePoint)) {
e.consume();
Expand Down

0 comments on commit 36e7f86

Please sign in to comment.