scrollTo(s, getAnimScroll());
}
}
private void scrollTo(int pos, boolean animate) {
XElement stripWrap = getStripWrap();
if (animate) {
Fx fx = new Fx();
fx.addAfterAnimateHandler(new AfterAnimateHandler() {
@Override
public void onAfterAnimate(AfterAnimateEvent event) {
appearance.updateScrollButtons(getElement());
}
});
stripWrap.<FxElement> cast().scrollTo(ScrollDirection.LEFT, pos, true, fx);
} else {
stripWrap.setScrollLeft(pos);
appearance.updateScrollButtons(getElement());
}
}