From 16ce373d14199b94729caffcb099d8a6bd37f882 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Wed, 9 Mar 2011 20:37:53 -0700 Subject: #787: Horizontal mouse scrolling support, patch by Kakurady Drakenar --- linden/indra/llui/lllineeditor.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linden/indra/llui/lllineeditor.cpp') 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) return handled; } +BOOL LLLineEditor::handleHScrollWheel(S32 x, S32 y, S32 clicks) +{ + mScrollHPos = llclamp(mScrollHPos + clicks * 3, 0, mText.length()); + return TRUE; +} BOOL LLLineEditor::handleMouseUp(S32 x, S32 y, MASK mask) -- cgit v1.1