void ScrollBar::handleMaxButtonAction(ActionEventDetails* const e) { if(getEnabled()) { scrollUnit(1); } }
void ScrollBar::mouseWheelMoved(const MouseWheelEventUnrecPtr e) { if(getEnabled()) { if(e->getScrollType() == MouseWheelEvent::BLOCK_SCROLL) { scrollBlock(-e->getScrollAmount()); } else if(e->getScrollType() == MouseWheelEvent::UNIT_SCROLL) { scrollUnit(-e->getUnitsToScroll()); } } ComponentContainer::mouseWheelMoved(e); }