Repository navigation
feat(screenshot): add live preview panel for scroll capture - #3269
Conversation
- Port scrolling live preview from dms-quick-capture backend to native screenshot. - Calculate dynamic preview panel geometry placed beside the capture hole on the side with most available space. - Render downscaled live stitched canvas with dark translucent background and white border in drawScrollOverlay. - Include preview panel in Wayland input regions and allow completing capture by clicking the preview panel. - Update cursor shape to pointer hand when hovering over preview or control buttons. - Add unit tests for layout, hit testing, and canvas rendering.
|
/claude review |
Claude reviewOne finding — the feature works, but the preview stops rendering on long captures.
Checked: preview geometry/clipping math, buffer indexing and format swap in |
- Derive preview aspect ratio from a bounded tail window of the canvas (maxPreviewRows = frameW * maxHeight / minImageW). - Prevent preview panel width from collapsing below minImageW and disappearing when stitched rows exceed ~4.5x width. - Render the recent window rows in drawScrollPreview to maintain a stable panel size and display live incoming content. - Add unit test for long scrolling capture preview bounds.
|
/claude review |
Claude reviewNo issues found. The previous finding (panel shrinking below Checked this run: preview panel geometry ( Model: claude-opus-5. |
Ports the scrolling live preview panel feature from
dms-quick-capturebackend to the native DMS screenshot toolrecording_20260903_080418.mp4