diff options
| author | Richard Nelson <richard@lindenlab.com> | 2009-10-16 20:34:10 +0000 |
|---|---|---|
| committer | Richard Nelson <richard@lindenlab.com> | 2009-10-16 20:34:10 +0000 |
| commit | 195c09748ef2b30b95942f4261128bf3a76c9582 (patch) | |
| tree | 47b02e1e51de2d45db1c6dc3f2415fc85a023701 /indra/llui/llscrollbar.cpp | |
| parent | 850c0f1e33ed5188b5346a7aeb3099ca29e0d2d0 (diff) | |
double click on scrollbar now scrolls twice
reviewed by Leyla
Diffstat (limited to 'indra/llui/llscrollbar.cpp')
| -rw-r--r-- | indra/llui/llscrollbar.cpp | 7 |
1 files changed, 7 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; |
