void (MouseEvent e) { if (e instanceof SyntheticDragEvent) return; JComponent c = (JComponent)e.getComponent(); ScrollDeltaProvider handler = (ScrollDeltaProvider)c.getClientProperty(SCROLL_HANDLER_KEY); handler = ObjectUtils.notNull(handler, myDefaultAutoScrollHandler); myVerticalScrollDelta = handler.getVerticalScrollDelta(e); myHorizontalScrollDelta = handler.getHorizontalScrollDelta(e); myLatestDragEvent = new SyntheticDragEvent(c, e.getID(), e.getWhen(), e.getModifiersEx(), c.getX(), c.getY(), e.getXOnScreen(), e.getYOnScreen(), e.getClickCount(), e.isPopupTrigger(), e.getButton()); }