Skip to content

[Editor] Restore pinch-to-resize on an editor which came back from an undo - #21644

Merged
calixteman merged 1 commit into
mozilla:masterfrom
calixteman:editor/pinch-lost-after-undo
Jul 29, 2026
Merged

[Editor] Restore pinch-to-resize on an editor which came back from an undo#21644
calixteman merged 1 commit into
mozilla:masterfrom
calixteman:editor/pinch-lost-after-undo

Conversation

@calixteman

Copy link
Copy Markdown
Contributor

AnnotationEditor.remove() destroys the editor's TouchManager, but remove() is also the undo half of an edit: deleting a drawing and undoing it, or undoing the drawing itself and redoing it, brings the very same editor back.

@calixteman
calixteman requested a review from timvandermeij July 27, 2026 15:15
@codecov-commenter

codecov-commenter commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.96%. Comparing base (4d9007e) to head (822d3ea).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21644      +/-   ##
==========================================
+ Coverage   89.79%   89.96%   +0.16%     
==========================================
  Files         263      263              
  Lines       66884    66887       +3     
==========================================
+ Hits        60061    60173     +112     
+ Misses       6823     6714     -109     
Flag Coverage Δ
browsertest 66.52% <0.00%> (-0.03%) ⬇️
fonttest 9.04% <ø> (ø)
integrationtest 69.32% <100.00%> (+0.18%) ⬆️
unittest 57.58% <0.00%> (+<0.01%) ⬆️
unittestcli 56.51% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@timvandermeij timvandermeij left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, with the comment about the toBeGreaterThan line addressed. Thank youu for fixing this!

Comment thread test/integration/ink_editor_spec.mjs Outdated
Comment thread test/integration/ink_editor_spec.mjs
… undo

`AnnotationEditor.remove()` destroys the editor's `TouchManager`, but `remove()`
is also the undo half of an edit: deleting a drawing and undoing it, or undoing
the drawing itself and redoing it, brings the very same editor back.
@calixteman
calixteman force-pushed the editor/pinch-lost-after-undo branch from cd63fe4 to 822d3ea Compare July 29, 2026 12:45
@calixteman
calixteman merged commit 61acf93 into mozilla:master Jul 29, 2026
20 of 21 checks passed
@calixteman
calixteman deleted the editor/pinch-lost-after-undo branch July 29, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants