Skip to content

Commit ee3890a

Browse files
committed
Fixed focusMode position change [#31]
1 parent ebeaf45 commit ee3890a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Pixel Picker/OverlayPanel/PPOverlayController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ class PPOverlayController: NSWindowController {
322322

323323
// Calculate a zoomed rect which will crop the screenshot we took.
324324
let magnification = CGFloat(PPState.shared.magnificationLevel)
325-
let zoomReciprocal: CGFloat = 1.0 / (focusMode ? magnification * 2.5 : magnification)
325+
let zoomReciprocal: CGFloat = 1.0 / (focusMode ? magnification * 2.0 : magnification)
326326
let currentSize = CGFloat(screenShot.width) + 1
327327
let origin = floor(currentSize * ((1 - zoomReciprocal) / 2))
328328
let x = origin + (isHalf(normalisedPoint.x) ? 1 : 0)

0 commit comments

Comments
 (0)