1
0
Эх сурвалжийг харах

fix unable to drag windows.

Dan Walmsley 7 жил өмнө
parent
commit
0063a7ad2f

+ 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];
 }