mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:01:29 +00:00
With the All tools panel closed, page text scrolled up under the mode bar gave the Read, Edit, Convert and E-Sign tabs the page's cursor: the Select tool's I-beam, or Edit text's four-way arrow (the I-beam once a paragraph was open). The page code tested egui's raw hover position against the page's whole rectangle, which runs on under the chrome when the page is scrolled, and it sets the cursor after the mode bar does. The text layer and Edit text now set their cursor only while the pages' widget contains the pointer, as Fill & Sign already does; a selection being dragged keeps the I-beam past the edge. The open paragraph's editor, a foreground Area placed on its paragraph, also floated over the tabs and took their clicks: it is now clipped and hit-tested to the document viewport and stays on its paragraph instead of being pushed back into the window. Fixes #2755