fix textbox cursor bug on resize (#810)

master
Arsen Ghazaryan 2022-06-28 15:00:47 +04:00 committed by GitHub
parent 275269eadf
commit 897dcdb097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,8 @@ const mouseMoveEvent = (evt) => {
if (!svgCanvas.getStarted()) { return } if (!svgCanvas.getStarted()) { return }
if (evt.button === 1 || svgCanvas.spaceKey) { return } if (evt.button === 1 || svgCanvas.spaceKey) { return }
svgCanvas.textActions.init()
evt.preventDefault() evt.preventDefault()
const selectedElements = svgCanvas.getSelectedElements() const selectedElements = svgCanvas.getSelectedElements()
@ -558,6 +560,8 @@ const mouseUpEvent = (evt) => {
if (evt.button === 2) { return } if (evt.button === 2) { return }
if (!svgCanvas.getStarted()) { return } if (!svgCanvas.getStarted()) { return }
svgCanvas.textActions.init()
const selectedElements = svgCanvas.getSelectedElements() const selectedElements = svgCanvas.getSelectedElements()
const zoom = svgCanvas.getZoom() const zoom = svgCanvas.getZoom()