void (Composition composition) { if (composition.lastEvent == null) return; double val = composition.pendingPreciseWheelRotation * wheelFactor; if (SystemInfoRt.isLinux || SystemInfoRt.isMac) { val *= -1; } double scale = myScale.getIdeBiased(); myBrowser.sendMouseWheelEvent(new MouseWheelEvent( composition.lastEvent.getComponent(), composition.lastEvent.getID(), composition.lastEvent.getWhen(), composition.lastEvent.getModifiersEx(), ROUND.round(composition.lastEvent.getX() / scale), ROUND.round(composition.lastEvent.getY() / scale), ROUND.round(composition.lastEvent.getXOnScreen() / scale), ROUND.round(composition.lastEvent.getYOnScreen() / scale), composition.pendingClickCount, composition.lastEvent.isPopupTrigger(), composition.lastEvent.getScrollType(), composition.pendingScrollAmount, (int)val, val)); composition.reset(); }