diff options
author | Armin Weatherwax | 2010-01-08 17:02:56 +0100 |
---|---|---|
committer | Jacek Antonelli | 2010-02-03 22:43:03 -0600 |
commit | 1e802ab2b4a0f203f910daf892b50fbf6cf4a8b3 (patch) | |
tree | 1b593dc6894a4945709658b67b5fc66c98fc40c6 /linden/indra/llui/llslider.cpp | |
parent | Removed pixbuf and pango from linux32 viewer_manifest. (diff) | |
download | meta-impy-1e802ab2b4a0f203f910daf892b50fbf6cf4a8b3.zip meta-impy-1e802ab2b4a0f203f910daf892b50fbf6cf4a8b3.tar.gz meta-impy-1e802ab2b4a0f203f910daf892b50fbf6cf4a8b3.tar.bz2 meta-impy-1e802ab2b4a0f203f910daf892b50fbf6cf4a8b3.tar.xz |
Slider widgets can now be controlled with mouse wheel.
(Cherry-picked by Jacek from 334b0b32)
Diffstat (limited to 'linden/indra/llui/llslider.cpp')
-rw-r--r-- | linden/indra/llui/llslider.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/llui/llslider.cpp b/linden/indra/llui/llslider.cpp index 7b4da9b..83b4d65 100644 --- a/linden/indra/llui/llslider.cpp +++ b/linden/indra/llui/llslider.cpp | |||
@@ -222,6 +222,12 @@ BOOL LLSlider::handleMouseDown(S32 x, S32 y, MASK mask) | |||
222 | return TRUE; | 222 | return TRUE; |
223 | } | 223 | } |
224 | 224 | ||
225 | BOOL LLSlider::handleScrollWheel(S32 x, S32 y, S32 clicks) | ||
226 | { | ||
227 | setValueAndCommit(getValueF32() - ( getIncrement()* (F32)clicks )); | ||
228 | return TRUE; | ||
229 | } | ||
230 | |||
225 | BOOL LLSlider::handleKeyHere(KEY key, MASK mask) | 231 | BOOL LLSlider::handleKeyHere(KEY key, MASK mask) |
226 | { | 232 | { |
227 | BOOL handled = FALSE; | 233 | BOOL handled = FALSE; |