Pārlūkot izejas kodu

fix unable to drag windows.

Dan Walmsley 7 gadi atpakaļ
vecāks
revīzija
0063a7ad2f
1 mainītis faili ar 0 papildinājumiem un 3 dzēšanām
  1. 0 3
      src/Avalonia.Native.OSX/window.mm

+ 0 - 3
src/Avalonia.Native.OSX/window.mm

@@ -510,7 +510,6 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent
     _isLeftPressed = true;
     _lastMouseDownEvent = event;
     [self mouseEvent:event withType:LeftButtonDown];
-    _lastMouseDownEvent = nullptr;
     
     [super mouseDown:event];
 }
@@ -520,7 +519,6 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent
     _isMiddlePressed = true;
     _lastMouseDownEvent = event;
     [self mouseEvent:event withType:MiddleButtonDown];
-    _lastMouseDownEvent = nullptr;
     
     [super otherMouseDown:event];
 }
@@ -530,7 +528,6 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent
     _isRightPressed = true;
     _lastMouseDownEvent = event;
     [self mouseEvent:event withType:RightButtonDown];
-    _lastMouseDownEvent = nullptr;
     
     [super rightMouseDown:event];
 }