svgedit
svgedit copied to clipboard
Unresponsive to mouse clicks
Discussed in https://github.com/SVG-Edit/svgedit/discussions/885
Originally posted by LodeStarLearning February 9, 2023 I'm integrating SVG-Edit in a JavaFx application. The editor displays in a Chromium web browser inside a JavaFx dialog.
I can render SVG-Edit unresponsive to mouse clicks by:
adding Text scaling Text Exiting the browser with the text caret left inside the text element.
When I reopen the SVG graphic in SVG-Edit, no tool responds to mouse clicks until I re-enter the Text element and then click anywhere on the canvas in order to remove the text caret. Once I do that, everything responds normally.
When re-opening SVG-Edit, I attempt to reset the state with the following commands: svgEditor.svgCanvas.clear(); svgEditor.svgCanvas.setResolution('960', '450'); svgEditor.updateCanvas(true);
How do you exit the browser and reopen the SVG graphic? I'm guessing it's not a SVG-Edit problem. It's a problem of usage of JavaFx Chromium web view.