penpot/frontend
alonso.torres 36f0f3089d 🐛 Wait for a mouse position before moving a dragged asset
Dragging a component from the Assets panel onto a freshly opened file
showed "Something wrong has happened". The drag starts a move as soon as
it enters the viewport, and the move took the mouse position at once,
which is nil until the pointer has been over the viewport; the vector
from the start point to it failed (`gpt/subtract` assertion). The copy
was still created.

The move now waits for the first mouse position.

Found by the components Qase run (PENPOT-2416).

Test: `a-move-started-without-a-mouse-position-follows-the-pointer`
(drag-on-save-failure-test).

AI-assisted-by: claude-opus-5-5
2026-11-19 10:06:46 +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