Disable logo selection
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user