diff --git a/src-electron/main/window/window-media.ts b/src-electron/main/window/window-media.ts index d889fc4f6..850c30511 100644 --- a/src-electron/main/window/window-media.ts +++ b/src-electron/main/window/window-media.ts @@ -120,8 +120,10 @@ const boundsAreSame = ( if (!current || !target) return false; return ['height', 'width', 'x', 'y'].every( (prop) => - current[prop as keyof Electron.Rectangle] === - target[prop as keyof Electron.Rectangle], + Math.abs( + current[prop as keyof Electron.Rectangle] - + target[prop as keyof Electron.Rectangle], + ) <= 5, ); };