summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorRichard Nelson <richard@lindenlab.com>2009-10-16 20:34:10 +0000
committerRichard Nelson <richard@lindenlab.com>2009-10-16 20:34:10 +0000
commit195c09748ef2b30b95942f4261128bf3a76c9582 (patch)
tree47b02e1e51de2d45db1c6dc3f2415fc85a023701 /indra
parent850c0f1e33ed5188b5346a7aeb3099ca29e0d2d0 (diff)
double click on scrollbar now scrolls twice
reviewed by Leyla
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/llscrollbar.cpp7
-rw-r--r--indra/llui/llscrollbar.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/indra/llui/llscrollbar.cpp b/indra/llui/llscrollbar.cpp
index cb4147709d..a75a0c6979 100644
--- a/indra/llui/llscrollbar.cpp
+++ b/indra/llui/llscrollbar.cpp
@@ -452,6 +452,13 @@ BOOL LLScrollbar::handleMouseUp(S32 x, S32 y, MASK mask)
return handled;
}
+BOOL LLScrollbar::handleDoubleClick(S32 x, S32 y, MASK mask)
+{
+ // just treat a double click as a second click
+ return handleMouseDown(x, y, mask);
+}
+
+
void LLScrollbar::reshape(S32 width, S32 height, BOOL called_from_parent)
{
if (width == getRect().getWidth() && height == getRect().getHeight()) return;
diff --git a/indra/llui/llscrollbar.h b/indra/llui/llscrollbar.h
index 2e95779624..865a1db409 100644
--- a/indra/llui/llscrollbar.h
+++ b/indra/llui/llscrollbar.h
@@ -93,6 +93,7 @@ public:
virtual BOOL handleKeyHere(KEY key, MASK mask);
virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask);
+ virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask);
virtual BOOL handleHover(S32 x, S32 y, MASK mask);
virtual BOOL handleScrollWheel(S32 x, S32 y, S32 clicks);
virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,