// static void LLTabContainer::onPrevBtn( void* userdata ) { LLTabContainer* self = (LLTabContainer*) userdata; if (!self->mScrolled) { self->scrollPrev(); } self->mScrolled = FALSE; }
// static void LLTabContainer::onPrevBtnHeld( void* userdata ) { LLTabContainer* self = (LLTabContainer*) userdata; if (self->mScrollTimer.getElapsedTimeF32() > SCROLL_STEP_TIME) { self->mScrollTimer.reset(); self->scrollPrev(); self->mScrolled = TRUE; } }