mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 17:37:14 +00:00
A guide was kept whenever the release still read a position inside the document on the guide's own axis. The two rulers measure one axis each, so a horizontal guide let go on the left ruler, or a vertical one let go on the top ruler, was moved, and a new one dragged out of a ruler was created, instead of discarded. `dropped_on_a_ruler` reports whether the release point is in a ruler band while the rulers are shown. `GuideDrag` carries the answer and `finish_drag` treats such a drop as off-canvas. The canvas sets it from the release position in screen space, where the rulers are; the ruler's own drag sets it from its pointer position. Two of the four new tests fail on main: a guide dragged out of the top ruler and let go on the left ruler is created, and an existing guide dragged onto the left ruler is moved. A guide released on the canvas still lands where it was let go.