ianarawjo / ianarawjo/ChainForge

Fix mouse coord mismatch in `AceEditor` on zoom out

Open
#64 0 comments 0 reactions 0 assignees View on GitHub
bug low priority
Dominant language
TypeScript
Stars
3k
Forks
256
Avg merge
4h 40m
Merged PRs (30d)
22

Description

ReactFlow's internal zooming function breaks the way `AceEditor` keeps track of cursor/mouse position.
To fix, one needs to project the mouse event coordinates into the current zoom level:
https://github.com/wbkd/react-flow/discussions/2977

This isn't a high priority issue because it can be fixed by just zooming back into 1x.
But, it is something that will likely come up again in other node types.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.