Closed peteward closed 1 month ago
Initial notes:
getBoundingClientRect()
returns values relative to the viewport (the entire page), whereas other values are relative to the canvas. In the playground case we have headers at the top of the page which will therefore be included in getBoundingClientRect()
and must be negated.
Describe the bug
When dragging in new schema from the left-hand sidebar they are not positioned correctly and the positioning inaccuracy increases the further away from the top-left corner
To Reproduce
Expected behavior
The schema should be positioned exactly where it is dropped.
Your Environment
Your Error Log
Additional context
The fix should consider: