{
public static MouseWheelAction instance = new MouseWheelAction();
public void invoke(Event e)
{
PanelEvent event = (PanelEvent) e;
if(!(event.getRecipient() instanceof PropPanel))
return;
MouseWheelEvent wheelEvent = (MouseWheelEvent) event;
PropPanel panel = (PropPanel) event.getRecipient();
ScrollBarPanel scrollBar = wheelEvent.isVertical() ? panel.getVerticalScrollbar() : panel.getHorizontalScrollbar();
if(scrollBar != null)
scrollBar.setValue(scrollBar.getValue() + wheelEvent.getUnitsToScroll());
else if(panel.getParent() != null)
event.dispatch(panel.getParent());
}