mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 21:22:53 +00:00
The corner layout resolves from the window width. Dragging the window narrower than the threshold dropped the layout mid-drag, which re-locked the aspect ratio and auto-fitted the window back to the video size. The fitted width was above the threshold again, so the layout re-entered corner mode and unlocked, and the cycle repeated on every layout pass for the rest of the drag (visible as the window abruptly jumping in size). Aspect lock/unlock requests made during a live resize are now parked and applied in windowDidEndLiveResize, since changing contentAspectRatio or contentResizeIncrements under the cursor makes AppKit's resize handler switch modes and snap the frame. Auto-fit never runs during a live resize, and the corner-layout change handler skips it when the change was caused by the user's drag: the drag owns the size. The free-resize size floor in windowWillResize now clamps width and height independently. Preserving the proposed ratio (correct only under an aspect lock) widened the window while dragging just the bottom edge past the minimum height.