refactor: refine the drag

This commit is contained in:
Kevin Yue committed 2023-06-26 15:07:55 +08:00
1 parent 5603157679
commit f91f0bcd17
8 files changed
+22 -13

No files matched your search

+3 -2
View File
@@ -4,12 +4,13 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0" />
<title>Vite + React + TS</title>
<title>GlobalProtect</title>
</head>
<body data-tauri-drag-region>
<script>
/* workaround to webview font size auto scaling */
var htmlFontSize = getComputedStyle(document.documentElement).fontSize;
var ratio = parseInt(htmlFontSize) / 16;
var ratio = parseInt(htmlFontSize, 10) / 16;
document.documentElement.style.fontSize = (16 / ratio) + 'px';
</script>
<div id="root"></div>