forked from 1b-agent/opencadstudio-upstream
The old formula (distance × 0.001) was a fixed approximation that ignored the paper camera's current zoom level and the viewport's paper-space size, causing panning to feel sluggish. New formula: model_per_pixel = (2 × paper_half_h / canvas_height) × (view_height / vp_height) This converts screen pixels → paper-space mm → model units correctly, making the content follow the cursor regardless of paper zoom or scale. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>