Skip to content

fix(overlays): keep ellipse anchored on drag and resize#2939

Merged
enoch85 merged 1 commit into
developmentfrom
fix/issue-2938-ellipse-drag
May 20, 2026
Merged

fix(overlays): keep ellipse anchored on drag and resize#2939
enoch85 merged 1 commit into
developmentfrom
fix/issue-2938-ellipse-drag

Conversation

@enoch85

@enoch85 enoch85 commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Konva renders ellipses by their center, but the drag/transform handlers stored that center as the top-left x/y, so ellipses jumped by half their size on every drag and resize. Convert center→top-left for ellipses in handleDragEnd and handleTransformEnd.

Fixes #2938.

@enoch85 enoch85 merged commit 227c327 into development May 20, 2026
12 checks passed
@enoch85 enoch85 deleted the fix/issue-2938-ellipse-drag branch May 20, 2026 16:13
@enoch85 enoch85 added this to the 3.12.0 milestone May 20, 2026 — with GitHub Codespaces
@maintainerr-automation

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.12.0 🎉

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overlay Designer: Dragging ellipse shape results in unexpected placement

1 participant