Disable logo selection

This commit is contained in:
2026-03-11 13:52:34 -06:00
parent 4a66301b80
commit 566796b4d8

View File

@@ -25,8 +25,8 @@ public final class SvgWebViewFactory {
String svg = loadSvg(resourcePath)
.replaceFirst("<svg\\b", "<svg width=\"100%\" height=\"100%\" preserveAspectRatio=\"xMidYMid meet\"");
String html = "<html><body style='margin:0;display:flex;align-items:center;justify-content:center;background:transparent;overflow:hidden;'>"
+ svg
String html = "<html><body style='margin:0;display:flex;align-items:center;justify-content:center;background:transparent;overflow:hidden;-webkit-user-select:none;user-select:none;pointer-events:none;'>"
+ svg.replace("<svg", "<svg style=\"pointer-events:none;-webkit-user-select:none;user-select:none;\"")
+ "</body></html>";
webView.getEngine().loadContent(html, "text/html");