=== modified file 'src/com/goldencode/p2j/ui/client/gui/driver/swing/SwingMouseHandler.java' --- src/com/goldencode/p2j/ui/client/gui/driver/swing/SwingMouseHandler.java 2016-03-06 15:30:32 +0000 +++ src/com/goldencode/p2j/ui/client/gui/driver/swing/SwingMouseHandler.java 2016-03-06 17:38:24 +0000 @@ -36,6 +36,8 @@ import com.goldencode.p2j.ui.client.*; import com.goldencode.p2j.ui.client.event.*; import com.goldencode.p2j.ui.client.gui.FrameGuiImpl; +import com.goldencode.p2j.ui.client.gui.ScrollBarGuiImpl; +import com.goldencode.p2j.ui.client.gui.ScrollPaneGuiImpl; import com.goldencode.p2j.ui.client.gui.driver.*; import com.goldencode.p2j.ui.client.widget.*; @@ -428,6 +430,19 @@ } }); + // if it is scroll bar then find its scroll pane parent + if (parent instanceof ScrollBarGuiImpl) + { + parent = WidgetRegistry.findAncestor(parent, new Predicate() + { + @Override + public boolean test(Widget t) + { + return ScrollPaneGuiImpl.class.equals(t.getClass()); + } + }); + } + WidgetId wid = UiUtils.getWidgetId(parent); if (wid == null)