mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
handle_input set hover_doc, the document point under the pointer, from the view as handle_input found it. The wheel's zoom, scroll and trackpad turn, a held pan, a Rotate View drag, the Zoom tool and a Presentation Mode click moved the view later in the same call, and show drew with the moved view. In a frame where a wheel scroll moved the view, the rulers' pointer marks were drawn off the pointer by that frame's scroll, the Info panel showed the earlier point, and the hover highlight and the tool cursor were looked up there. A pan, a Rotate View drag, a Zoom tool marquee and an Animated Zoom scrub left hover_doc behind the view in the same way. A tool drag held still while the wheel scrolled was sent the old view's point. The wheel block now runs before handle_input takes its view, so the tool's events in that frame use the view the wheel moved to. show sets hover_doc right after handle_input returns, from the view it left.