diff options
author | McCabe Maxsted | 2011-03-09 20:37:53 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-03-09 20:37:53 -0700 |
commit | 16ce373d14199b94729caffcb099d8a6bd37f882 (patch) | |
tree | bd513a4f6107d57f7f7a5fe1552852f8fccc277f /linden/indra/llui/lllineeditor.cpp | |
parent | Fixed windows compile error (diff) | |
download | meta-impy-16ce373d14199b94729caffcb099d8a6bd37f882.zip meta-impy-16ce373d14199b94729caffcb099d8a6bd37f882.tar.gz meta-impy-16ce373d14199b94729caffcb099d8a6bd37f882.tar.bz2 meta-impy-16ce373d14199b94729caffcb099d8a6bd37f882.tar.xz |
#787: Horizontal mouse scrolling support, patch by Kakurady Drakenar
Diffstat (limited to 'linden/indra/llui/lllineeditor.cpp')
-rw-r--r-- | linden/indra/llui/lllineeditor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/llui/lllineeditor.cpp b/linden/indra/llui/lllineeditor.cpp index a3785e4..76b8927 100644 --- a/linden/indra/llui/lllineeditor.cpp +++ b/linden/indra/llui/lllineeditor.cpp | |||
@@ -1034,6 +1034,11 @@ BOOL LLLineEditor::handleHover(S32 x, S32 y, MASK mask) | |||
1034 | 1034 | ||
1035 | return handled; | 1035 | return handled; |
1036 | } | 1036 | } |
1037 | BOOL LLLineEditor::handleHScrollWheel(S32 x, S32 y, S32 clicks) | ||
1038 | { | ||
1039 | mScrollHPos = llclamp(mScrollHPos + clicks * 3, 0, mText.length()); | ||
1040 | return TRUE; | ||
1041 | } | ||
1037 | 1042 | ||
1038 | 1043 | ||
1039 | BOOL LLLineEditor::handleMouseUp(S32 x, S32 y, MASK mask) | 1044 | BOOL LLLineEditor::handleMouseUp(S32 x, S32 y, MASK mask) |