boolean (MouseEvent event) { if (isTrackClickable()) return false; // redispatch current event to the view Container parent = myScrollBar.getParent(); if (parent instanceof JScrollPane pane) { Component view = pane.getViewport().getView(); if (view != null) { Point point = event.getLocationOnScreen(); SwingUtilities.convertPointFromScreen(point, view); Component target = SwingUtilities.getDeepestComponentAt(view, point.x, point.y); MouseEventAdapter.redispatch(event, target); } } return true; }