SL-10023 FIXED Dragging mouse on World map sometimes causes cursor jump to the center of the screen

Mnikolenko ProductEngine 2018-11-16 15:53:52 +02:00
parent 6e934b1dba
commit cd3608e661
1 changed files with 4 additions and 0 deletions

View File

@ -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) &&