Originally reported in Milkdown/milkdown#2121
Link to runnable example
https://stackblitz.com/edit/csz9rfwk-d4u8wmme?file=src%2FApp.svelte
Steps to reproduce
- go to the stackblitz link
- refresh preview if nothing appears
- zoom / dezoom in the preview
- click on the "Hello Milkdown"
- caret is not where i click
Should be how the zoom is handled by the reactflow / svelteflow library. Works for other editors so something should be doable.
Expected behavior
Caret should be where i click at any zoom level
Actual behavior
caret position is incorrect although when clicking and typing the position is correct.
Seems the library add a top level transform: scale css on its canvas....

Originally reported in Milkdown/milkdown#2121
Link to runnable example
https://stackblitz.com/edit/csz9rfwk-d4u8wmme?file=src%2FApp.svelte
Steps to reproduce
Should be how the zoom is handled by the reactflow / svelteflow library. Works for other editors so something should be doable.
Expected behavior
Caret should be where i click at any zoom level
Actual behavior
caret position is incorrect although when clicking and typing the position is correct.
Seems the library add a top level
transform: scalecss on its canvas....