diff --git a/fireplace-swing/src/main/java/io/github/bric3/fireplace/core/ui/JScrollPaneWithBackButton.java b/fireplace-swing/src/main/java/io/github/bric3/fireplace/core/ui/JScrollPaneWithBackButton.java index 7b41a734..72bbb34b 100644 --- a/fireplace-swing/src/main/java/io/github/bric3/fireplace/core/ui/JScrollPaneWithBackButton.java +++ b/fireplace-swing/src/main/java/io/github/bric3/fireplace/core/ui/JScrollPaneWithBackButton.java @@ -171,6 +171,7 @@ protected void processMouseEvent(MouseEvent e, JLayer 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();