summaryrefslogtreecommitdiff
path: root/indra/llui/llscrollbar.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-03 02:05:17 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-03 02:05:17 +0300
commitfb248ad2bc106bad827e624b4bb6b99a3f97d266 (patch)
tree7d9bc7c94ce7f505caff0c69c8ea326344069441 /indra/llui/llscrollbar.cpp
parentac5c62de965f3e6547cec657bb97c55ebaa40c53 (diff)
SL-19815 Gallery support for left, right, up and down
Diffstat (limited to 'indra/llui/llscrollbar.cpp')
-rw-r--r--indra/llui/llscrollbar.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llui/llscrollbar.cpp b/indra/llui/llscrollbar.cpp
index fde6de4921..62be0c28e8 100644
--- a/indra/llui/llscrollbar.cpp
+++ b/indra/llui/llscrollbar.cpp
@@ -591,7 +591,12 @@ void LLScrollbar::setValue(const LLSD& value)
BOOL LLScrollbar::handleKeyHere(KEY key, MASK mask)
{
- BOOL handled = FALSE;
+ if (getDocPosMax() == 0 && !getVisible())
+ {
+ return FALSE;
+ }
+
+ BOOL handled = FALSE;
switch( key )
{