Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresponsive to mouse clicks #889

Closed
LodeStarLearning opened this issue Mar 1, 2023 Discussed in #885 · 1 comment
Closed

Unresponsive to mouse clicks #889

LodeStarLearning opened this issue Mar 1, 2023 Discussed in #885 · 1 comment

Comments

@LodeStarLearning
Copy link

Discussed in #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);

@cuixiping
Copy link
Member

Duplicate with #886

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants