fix no-drag css

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2020-05-01 09:07:21 +03:00
1 parent 29cd171d0f
commit db9d00a6ae
2 files changed
+2 -4

No files matched your search

+2
View File
@@ -8,6 +8,8 @@
border: 0; border: 0;
outline: none; outline: none;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-user-drag: none;
-webkit-app-region: no-drag;
} }
::selection { ::selection {
-4
View File
@@ -93,10 +93,6 @@ export default {
console.log("lens loaded") console.log("lens loaded")
this.lens.loaded = true; this.lens.loaded = true;
this.$store.commit("updateLens", this.lens); this.$store.commit("updateLens", this.lens);
this.lens.webview.getWebContents().executeJavaScript(
// disable dragging of ui links
'document.styleSheets[0].insertRule("*, *::after, *::before { -webkit-user-drag: none; -webkit-app-region: no-drag; }", 1);'
);
}, },
// Called only when online state changes // Called only when online state changes
toggleLens: function() { toggleLens: function() {