mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 13:12:53 +00:00
Releasing the dismiss drag now shrinks the player window onto its video and flies it into the mini player's preview instead of sliding it off screen and showing the mini player afterwards. The mini player stays mounted under the expanded player and reports its preview frame, and the window is masked down to the video while its root view is transformed onto that frame (with the safe area the transform drops added back, so the content doesn't jump). The handoff of the shared MPV view is made seamless: a freshly made player container waits for its first layout before taking a view that is on screen elsewhere, sizes and redraws it there, and the window hides in that same frame. Resizing the render view draws the current frame into the recreated framebuffer right away instead of leaving it blank until the next tick. Falls back to the slide when no preview target is available (rotated session, video preview hidden, different window size).