aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-03-09 20:37:53 -0700
committerMcCabe Maxsted2011-03-09 20:37:53 -0700
commit16ce373d14199b94729caffcb099d8a6bd37f882 (patch)
treebd513a4f6107d57f7f7a5fe1552852f8fccc277f /linden/indra/llui/lllineeditor.cpp
parentFixed windows compile error (diff)
downloadmeta-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.cpp5
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}
1037BOOL 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
1039BOOL LLLineEditor::handleMouseUp(S32 x, S32 y, MASK mask) 1044BOOL LLLineEditor::handleMouseUp(S32 x, S32 y, MASK mask)