Skip to content

TK: the tracking run does not follow the cursor, and the guide / axis / marker are wrong #1449

Open

Description

@william-wwh

Summary

With TK (tracking), after the first pick the run does not follow the cursor at all: the point / guide stays where the first pick was put, no matter where the cursor moves. The guide also never stops at the cursor (it runs as a full ray through the base), the next leg does not alternate the axis, and the green + neither shows reliably on the first click nor clears after the first distance.

Steps to reproduce

  1. line Space
  2. tk Space
  3. Pick the first tracking point, e.g. (0,0)
  4. Move the cursor

Expected: a green + at (0,0); the guide follows the cursor, on the axis the next leg will use, stopped at the cursor's projection.

Actual: the point / guide does not move at all — it stays at the first pick.

Continue:
5. Move right and type 80 — the run should go to (80,0) and the + should clear
6. Move the cursor — a y-axis guide should run from (80,0) to the cursor's y, stopped there

Actual at step 6: the axis is not forced to alternate, and the guide does not stop at the cursor.

Expected

  • The first pick shows the green + (a click is a clear signal, not a hover).
  • After the first distance, the + clears and stays cleared.
  • The run follows the cursor: each leg runs on the axis other than the last one, on the cursor's side, and stops at the cursor's projection on that axis.
  • TT keeps its current behaviour.

Actual

  • After the first pick the run does not follow the cursor; the point stays put.
  • The guide is the base's polar ray and runs to the screen edge.
  • The axis is not forced to alternate.
  • The green + does not reliably show on the first click and does not clear after the first distance.

Environment

Root cause

Frame::Track { last: Option<Vec2> } carries only the last point. Session::snap_cursor sends the prompt's base (the last tracking point) to Tracker::track every frame, so the base's polar rays are what the UI draws; the UI has no TK-specific guide, so nothing follows the cursor and nothing stops at its projection. The axis is re-picked from the cursor each time (snap::ortho), and Frame::Track never calls acquire_temporary, so the + is missing.

Scope

All four symptoms above are one fix, in pointmod.rs / snap/tracking.rs / canvas.rs; they are not independent. In scope: the TK run following the cursor, its guide, its axis, and its marker. Out of scope: TT, the white crosshair, ellipse/spline reverse tangents.

Related

Activity

  1. ticket-craft commented on Oct 16, 2026

    @ticket-craft

    Thanks! This ticket describes several separate problems:

    • TK guide runs as a full ray instead of stopping at the cursor projection
    • TK axis alternation is not enforced between legs
    • Green + tracking marker does not show on click or clear after the first distance

    It helps a lot if each one has its own ticket, so they can be tracked and fixed separately.

    Possibly related: #441, #392 and #379.

  2. changed the title [-]TK: tracking guide does not stop at the cursor, and the axis does not alternate[/-] [+]TK: the tracking run does not follow the cursor, and the guide / axis / marker are wrong[/+] on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions