Skip to content

fix(drawnix): keep freehand selection aligned when zooming#454

Open
nightt5879 wants to merge 1 commit into
developfrom
nightt5879/fix-freehand-active-on-viewport
Open

fix(drawnix): keep freehand selection aligned when zooming#454
nightt5879 wants to merge 1 commit into
developfrom
nightt5879/fix-freehand-active-on-viewport

Conversation

@nightt5879

Copy link
Copy Markdown
Member

Found while testing zoom behavior. With a freehand element selected, its selection outline could stay at the previous position and scale while the rest of the selection updated.

FreehandComponent was missing the active-section refresh hook, so the outline was not redrawn after viewport changes. This adds the missing hook and a focused regression test.

Tested with:

  • Drawnix tests (26 passed)
  • Drawnix build
  • Manual A/B zoom testing with selected freehand elements

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying drawnix with  Cloudflare Pages  Cloudflare Pages

Latest commit: 783f7f2
Status: ✅  Deploy successful!
Preview URL: https://56add433.drawnix.pages.dev
Branch Preview URL: https://nightt5879-fix-freehand-acti.drawnix.pages.dev

View logs

@nightt5879
nightt5879 marked this pull request as ready for review July 15, 2026 07:49
@nightt5879

Copy link
Copy Markdown
Member Author
2026-07-15.15-40-38.mp4

the move and zoom bug, i test in my computer with plait_PR and this PR, both of them were clear

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant