diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2018-11-16 15:53:52 +0200 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2018-11-16 15:53:52 +0200 |
commit | cd3608e661c3e2cab0fab25e11647ae8ee8285bd (patch) | |
tree | a9922f23309a640450620d9d06d3732af786eed5 /indra/llwindow | |
parent | 6e934b1dba3928559e8eea619910cb61df3d2472 (diff) |
SL-10023 FIXED Dragging mouse on World map sometimes causes cursor jump to the center of the screen
Diffstat (limited to 'indra/llwindow')
-rw-r--r-- | indra/llwindow/llopenglview-objc.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llwindow/llopenglview-objc.mm b/indra/llwindow/llopenglview-objc.mm index c8c086d705..8923ea6458 100644 --- a/indra/llwindow/llopenglview-objc.mm +++ b/indra/llwindow/llopenglview-objc.mm @@ -322,6 +322,10 @@ attributedStringInfo getSegments(NSAttributedString *str) - (void) mouseDown:(NSEvent *)theEvent { + NSPoint mPoint = [theEvent locationInWindow]; + mMousePos[0] = mPoint.x; + mMousePos[1] = mPoint.y; + // Apparently people still use this? if ([theEvent modifierFlags] & NSCommandKeyMask && !([theEvent modifierFlags] & NSControlKeyMask) && |