mirror of
https://github.com/penpot/penpot.git
synced 2026-11-23 19:00:36 +00:00
Ctrl+V in a freshly opened file, with nothing selected, pasted nothing until the pointer had been over the viewport: the paste took the mouse position, which is nil until then, and failed on it. Pasting shapes and HTML text now falls back to the center of the viewport when there is no mouse position, as pasting path nodes already does. Found by the components Qase run. Test: `paste-before-the-pointer-reaches-the-viewport-uses-its-center` (pasting-in-containers-test). AI-assisted-by: claude-opus-5-5