summaryrefslogtreecommitdiff
path: root/indra/newview/llmediactrl.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2019-10-16 01:37:15 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2019-10-16 01:37:15 +0300
commit0ff935ca3cadb7bffd96f3cdca9b4f0f5eafc2d8 (patch)
treea602782a3a4d422ea72368fedc6d40d72cf0544c /indra/newview/llmediactrl.cpp
parent910fea5470db18927573d36fe9c7b80a3c499db3 (diff)
Brought back the changes from @andreyk for improved mouse scroll wheel performance (previously 8e228364f324)
Diffstat (limited to 'indra/newview/llmediactrl.cpp')
-rw-r--r--indra/newview/llmediactrl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llmediactrl.cpp b/indra/newview/llmediactrl.cpp
index b7947288c6..6cab9b9e99 100644
--- a/indra/newview/llmediactrl.cpp
+++ b/indra/newview/llmediactrl.cpp
@@ -202,7 +202,10 @@ BOOL LLMediaCtrl::handleScrollWheel( S32 x, S32 y, S32 clicks )
{
if (LLPanel::handleScrollWheel(x, y, clicks)) return TRUE;
if (mMediaSource && mMediaSource->hasMedia())
- mMediaSource->getMediaPlugin()->scrollEvent(0, clicks, gKeyboard->currentMask(TRUE));
+ {
+ convertInputCoords(x, y);
+ mMediaSource->scrollWheel(x, y, 0, clicks, gKeyboard->currentMask(TRUE));
+ }
return TRUE;
}