Skip to content

fix(photo-annotator): restore text/callout/measurement inline input#1528

Merged
steilerDev merged 2 commits into
betafrom
fix/photo-annotator-text-tools
May 19, 2026
Merged

fix(photo-annotator): restore text/callout/measurement inline input#1528
steilerDev merged 2 commits into
betafrom
fix/photo-annotator-text-tools

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

Text, Callout, and Measurement tools were not opening the inline text input when drawn. The dispatch logic in handleStageMouseUp was broken — it checked createShapeFromDraft return value, but that function doesn't handle these three tools.

Solution

Restructured handleStageMouseUp to dispatch inline input based on tool type directly:

  • Text: click-to-place (no drag size requirement)
  • Callout: requires minimum drag in both axes
  • Measurement: uses Euclidean distance gate

Verification

All 32 existing tests pass locally.

Frank Steiler and others added 2 commits May 19, 2026 22:53
The text, callout, and measurement tools were not opening the inline text input
when drawn on the canvas. The issue was in handleStageMouseUp which checked
createShapeFromDraft return value, but that function doesn't handle these tools.

Fixed by restructuring handleStageMouseUp to dispatch to inline input based on
tool type directly:
- Text: click-to-place (no drag size requirement)
- Callout: open input when drag exceeds MIN_SIZE in both axes
- Measurement: open input when Euclidean distance exceeds MIN_SIZE

Co-Authored-By: Claude frontend-developer (claude-haiku-4-5) <noreply@anthropic.com>
@steilerDev steilerDev merged commit ae44b5f into beta May 19, 2026
32 checks passed
@steilerDev steilerDev deleted the fix/photo-annotator-text-tools branch May 19, 2026 21:23
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.6.0-beta.63 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant