aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/App.vue
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2022-10-20 02:36:50 +0200
committerRemy Raes <raes.remy@gmail.com>2022-10-20 02:36:50 +0200
commitc34db477a4c33882afbb86972c3bf2521b31957c (patch)
treee128294e7d41de9ebedea8a2deecce6ddc71ca7c /src-vue/src/App.vue
parent12e5223d6f501babc2fedd55198b954417b673e9 (diff)
downloadFlightCore-c34db477a4c33882afbb86972c3bf2521b31957c.tar.gz
FlightCore-c34db477a4c33882afbb86972c3bf2521b31957c.zip
fix: restore native bar drag region
Diffstat (limited to 'src-vue/src/App.vue')
-rw-r--r--src-vue/src/App.vue10
1 files changed, 2 insertions, 8 deletions
diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue
index 7c95cff5..1b96abc3 100644
--- a/src-vue/src/App.vue
+++ b/src-vue/src/App.vue
@@ -19,13 +19,6 @@ export default {
},
mounted: () => {
store.commit('initialize');
-
- // Enable dragging entire app by dragging menu bar.
- // https://github.com/tauri-apps/tauri/issues/1656#issuecomment-1161495124
- document.querySelector("#fc__menu_bar")!.addEventListener("mousedown", async e => {
- if ((e.target as Element).closest(".el-menu-item")) return; // Disable drag when clicking menu items.
- await tauriWindow.appWindow.startDragging();
- });
},
methods: {
minimize() {
@@ -46,6 +39,7 @@ export default {
router
mode="horizontal"
id="fc__menu_bar"
+ data-tauri-drag-region
>
<el-menu-item index="/">Play</el-menu-item>
<el-menu-item index="/changelog">Changelog</el-menu-item>
@@ -82,7 +76,7 @@ export default {
background-color: transparent;
}
-#fc__menu_bar .el-menu-item.is-active, #fc__menu_bar .el-menu-item:focus{
+#fc__menu_bar .el-menu-item.is-active, #fc__menu_bar .el-menu-item:focus {
color: white !important;
background-color: transparent;
}