Skip to content
Snippets Groups Projects
Commit 5724d58f authored by Mnikolenko ProductEngine's avatar Mnikolenko ProductEngine
Browse files

MAINT-4847 FIXED Select new texture tab on clicking arrow buttons.

parent 1e759a5c
No related branches found
No related tags found
No related merge requests found
...@@ -1775,6 +1775,11 @@ void LLTabContainer::onNextBtn( const LLSD& data ) ...@@ -1775,6 +1775,11 @@ void LLTabContainer::onNextBtn( const LLSD& data )
scrollNext(); scrollNext();
} }
mScrolled = FALSE; mScrolled = FALSE;
if(mCurrentTabIdx < mTabList.size()-1)
{
selectNextTab();
}
} }
void LLTabContainer::onNextBtnHeld( const LLSD& data ) void LLTabContainer::onNextBtnHeld( const LLSD& data )
...@@ -1783,6 +1788,11 @@ void LLTabContainer::onNextBtnHeld( const LLSD& data ) ...@@ -1783,6 +1788,11 @@ void LLTabContainer::onNextBtnHeld( const LLSD& data )
{ {
mScrollTimer.reset(); mScrollTimer.reset();
scrollNext(); scrollNext();
if(mCurrentTabIdx < mTabList.size()-1)
{
selectNextTab();
}
mScrolled = TRUE; mScrolled = TRUE;
} }
} }
...@@ -1794,6 +1804,11 @@ void LLTabContainer::onPrevBtn( const LLSD& data ) ...@@ -1794,6 +1804,11 @@ void LLTabContainer::onPrevBtn( const LLSD& data )
scrollPrev(); scrollPrev();
} }
mScrolled = FALSE; mScrolled = FALSE;
if(mCurrentTabIdx > 0)
{
selectPrevTab();
}
} }
void LLTabContainer::onJumpFirstBtn( const LLSD& data ) void LLTabContainer::onJumpFirstBtn( const LLSD& data )
...@@ -1812,6 +1827,11 @@ void LLTabContainer::onPrevBtnHeld( const LLSD& data ) ...@@ -1812,6 +1827,11 @@ void LLTabContainer::onPrevBtnHeld( const LLSD& data )
{ {
mScrollTimer.reset(); mScrollTimer.reset();
scrollPrev(); scrollPrev();
if(mCurrentTabIdx > 0)
{
selectPrevTab();
}
mScrolled = TRUE; mScrolled = TRUE;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment