Skip to content

Commit

Permalink
#317 #222 Improve window snapping areas
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed May 17, 2024
1 parent c78f6ed commit 21c1505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Loop/Managers/WindowDragManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ class WindowDragManager {
guard
let mousePosition = NSEvent.mouseLocation.flipY,
let screen = NSScreen.screenWithMouse,
let screenFrame = screen.visibleFrame.flipY
let screenFrame = screen.frame.flipY
else {
return
}

self.previewController.setScreen(to: screen)
let ignoredFrame = screenFrame.insetBy(dx: 20, dy: 20) // 10px of snap area on each side
let ignoredFrame = screenFrame.insetBy(dx: 2, dy: 2)

let oldDirection = self.direction

Expand Down

0 comments on commit 21c1505

Please sign in to comment.