Skip to content

Commit 8934124

Browse files
committed
pass ci
1 parent 7dfcbc8 commit 8934124

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

video/out/mac/window.swift

+9-9
Original file line numberDiff line numberDiff line change
@@ -450,42 +450,42 @@ class Window: NSWindow, NSWindowDelegate {
450450
}
451451

452452
func adjustFrameEdge(frame: inout NSRect,
453-
frameValue: CGFloat, targetValue: CGFloat,
453+
frameValue: CGFloat, targetValue: CGFloat,
454454
isHorizontal: Bool, isMax: Bool) {
455455
let overAmount = isMax ?
456456
(frameValue - targetValue) :
457457
(targetValue - frameValue)
458-
458+
459459
if overAmount > 0 {
460460
let pullBackFactor = min(1, overAmount / 20)
461461
let adjustment = 2 * pullBackFactor
462-
462+
463463
if isHorizontal {
464464
frame.origin.x += isMax ?
465-
-(overAmount + adjustment) :
465+
-(overAmount + adjustment) :
466466
adjustment
467467
} else {
468468
frame.origin.y += isMax ?
469-
-(overAmount + adjustment) :
469+
-(overAmount + adjustment) :
470470
adjustment
471471
}
472472
}
473473
}
474474

475475
adjustFrameEdge(frame: &newFrame,
476-
frameValue: newFrame.maxX, targetValue: targetFrame.maxX,
476+
frameValue: newFrame.maxX, targetValue: targetFrame.maxX,
477477
isHorizontal: true, isMax: true)
478478

479479
adjustFrameEdge(frame: &newFrame,
480-
frameValue: newFrame.minX, targetValue: targetFrame.minX,
480+
frameValue: newFrame.minX, targetValue: targetFrame.minX,
481481
isHorizontal: true, isMax: false)
482482

483483
adjustFrameEdge(frame: &newFrame,
484-
frameValue: newFrame.maxY, targetValue: targetFrame.maxY,
484+
frameValue: newFrame.maxY, targetValue: targetFrame.maxY,
485485
isHorizontal: false, isMax: true)
486486

487487
adjustFrameEdge(frame: &newFrame,
488-
frameValue: newFrame.minY, targetValue: targetFrame.minY,
488+
frameValue: newFrame.minY, targetValue: targetFrame.minY,
489489
isHorizontal: false, isMax: false)
490490

491491
return newFrame

0 commit comments

Comments
 (0)