File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,15 @@ public extension SpringMotionPanel {
66
66
override func mouseDown( with event: NSEvent ) {
67
67
super. mouseDown ( with: event)
68
68
// Stop window from moving if the user grabbed it.
69
- if isMovableByWindowBackground {
69
+ if isMovableByWindowBackground, anchorWindowFrameObservation != nil {
70
70
stopMotion ( )
71
71
}
72
72
}
73
73
74
74
override func mouseUp( with event: NSEvent ) {
75
75
super. mouseUp ( with: event)
76
76
// Continue movement after the user lets go.
77
- if isMovableByWindowBackground {
77
+ if isMovableByWindowBackground, anchorWindowFrameObservation != nil {
78
78
startMotion ( )
79
79
}
80
80
}
Original file line number Diff line number Diff line change @@ -66,15 +66,15 @@ extension SpringMotionWindow {
66
66
override open func mouseDown( with event: NSEvent ) {
67
67
super. mouseDown ( with: event)
68
68
// Stop window from moving if the user grabbed it.
69
- if isMovableByWindowBackground {
69
+ if isMovableByWindowBackground, anchorWindowFrameObservation != nil {
70
70
stopMotion ( )
71
71
}
72
72
}
73
73
74
74
override open func mouseUp( with event: NSEvent ) {
75
75
super. mouseUp ( with: event)
76
76
// Continue movement after the user lets go.
77
- if isMovableByWindowBackground {
77
+ if isMovableByWindowBackground, anchorWindowFrameObservation != nil {
78
78
startMotion ( )
79
79
}
80
80
}
You can’t perform that action at this time.
0 commit comments