mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
A tab stop placed or dragged on the Tabs panel's ruler always landed at a fractional position, and the ruler was numbered in inches with a tick every 18 pt whatever the document's units. The reference app snaps stops to the ruler units with Snap To Unit in the panel menu or with Shift held during a drag, and numbers its tab ruler in the document's units. The ruler is now numbered in the General unit with the canvas rulers' label step at the ruler's scale, and has a tick every tenth of a step. The panel menu has Snap to Unit, checked while it is on. With it on, or with Shift held, a stop placed by a click or dragged on the ruler lands on the nearest tick, through Unit::snap_to_ruler_tick as a Shift-dragged ruler guide does. A snapped click that lands on an existing stop's tick selects that stop and records no undo step. The stops still change through text.tabs.set. The reference app's page names Shift for a drag only; Shift also snapping a click, and a snapped click onto a stop's tick selecting that stop, are VectorCraft's own rules. Docs: docs/target-app-parity.md.