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 #886

Open
LodeStarLearning opened this issue Feb 10, 2023 Discussed in #885 · 1 comment
Open

Unresponsive to mouse clicks #886

LodeStarLearning opened this issue Feb 10, 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

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.

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

No branches or pull requests

3 participants