mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: Position text editor absolute and fix the offsets so it doesn't remain fixed when container is scrolled (#3200)
* fix: Position text editor absolute and fix the offsets so it doesn't remain fixed when container is scrolled * update changelog * Update src/packages/excalidraw/CHANGELOG.md
This commit is contained in:
parent
862c065e33
commit
3a0a638a0d
3 changed files with 7 additions and 3 deletions
|
@ -1578,7 +1578,10 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
},
|
||||
this.state,
|
||||
);
|
||||
return [viewportX, viewportY];
|
||||
return [
|
||||
viewportX - this.state.offsetLeft,
|
||||
viewportY - this.state.offsetTop,
|
||||
];
|
||||
},
|
||||
onChange: withBatchedUpdates((text) => {
|
||||
updateElement(text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue