Made LLViewerMediaFocus::handleScrollWheel() grab the current keyboard modifiers.
parent
3a4f906037
commit
96b1f821c0
|
|
@ -48,6 +48,8 @@
|
|||
#include "llviewerparcelmgr.h"
|
||||
#include "llweb.h"
|
||||
#include "llmediaentry.h"
|
||||
#include "llkeyboard.h"
|
||||
|
||||
//
|
||||
// LLViewerMediaFocus
|
||||
//
|
||||
|
|
@ -298,8 +300,9 @@ BOOL LLViewerMediaFocus::handleScrollWheel(S32 x, S32 y, S32 clicks)
|
|||
// the scrollEvent() API's x and y are not the same as handleScrollWheel's x and y.
|
||||
// The latter is the position of the mouse at the time of the event
|
||||
// The former is the 'scroll amount' in x and y, respectively.
|
||||
// All we have for 'scroll amount' here is 'clicks', and no mask.
|
||||
media_impl->getMediaPlugin()->scrollEvent(0, clicks, /*mask*/0);
|
||||
// All we have for 'scroll amount' here is 'clicks'.
|
||||
// We're also not passed the keyboard modifier mask, but we can get that from gKeyboard.
|
||||
media_impl->getMediaPlugin()->scrollEvent(0, clicks, gKeyboard->currentMask(TRUE));
|
||||
retval = TRUE;
|
||||
}
|
||||
return retval;
|
||||
|
|
|
|||
Loading…
Reference in New Issue