penpot/frontend
alonso.torres 476e53744e 🐛 Paste at the viewport center before the pointer reaches it
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
2026-11-19 10:03:56 +01:00
..
2026-11-20 09:53:37 +01:00
2026-11-20 09:53:37 +01:00
2026-11-20 09:53:37 +01:00
2026-11-20 09:53:37 +01:00
2026-11-20 09:53:37 +01:00