mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-01 05:58:12 -06:00
With Add text the page's own paragraphs took input only while the pointer was over one (over_source), and their drags end in edit_text_ui::page_input. A paragraph dragged off its box was left hanging after the release (block_drag), to land wherever the pointer next met a paragraph; one flicked off in its first move never started, so nothing moved. main has the same test. Add text now also acts on the paragraph the page router says holds the press, until the button is up, so the drag ends where it is released, as with Edit text, and Add text's new-box path does not take the press over. New test add_text_finishes_a_paragraph_drag_that_leaves_its_box, seen failing before the fix (the drag still pending after the release); the flick was checked by hand the same way. From CodeRabbit's third review of #5300. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>