ceddlyburge / react-figma-miro-canvas-part-3

Companion code to "How to Create a Figma / Miro Style Canvas with React and TypeScript"
https://www.freecodecamp.org/news/how-to-create-a-figma-miro-style-canvas-with-react-and-typescript/
2 stars 2 forks source link

Changing zoom level messes up dragging on canvas #1

Closed davidkutas closed 5 months ago

davidkutas commented 5 months ago

Changing the zoom level makes the dragging of elements inaccurate. Meaning, that you drag an element that is already on the canvas, and when you release it it jumps to another location.

Is there a way to fix it?

ceddlyburge commented 5 months ago

Oooops, I must have done a bad copy and paste there. I thought I had checked this all thoroughly but obviously not. Anyway, its working now.