konvajs / konva

Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://konvajs.org/
Other
11.07k stars 896 forks source link

Position of group not not consistent between stages after drag #1758

Closed kravex911 closed 2 months ago

kravex911 commented 2 months ago

Hi, thank you for creating this amazing library, but I am building some sort of building CAD system using react Kong, and I have hit a couple road blocks. As you can see in the demo, it lets me draw polygons, no problem and when I first draw polygon and I click edit it shows up on the second stage in the exact same location, but if I were to drag the polygon and then click edit, the positions are inconsistent. Please let me know if I am doing something wrong or if there is a bug.

I also asked a stack overflow question regarding another issue with dragging here

Here is the demo

A video of the bug as well: https://github.com/konvajs/konva/assets/43700159/2fb016a7-8115-4e11-bad8-1beff3129398

lavrton commented 2 months ago

https://stackoverflow.com/a/78460761/512042

I think that will fix all.