Skip to content

Commit

Permalink
refactor: used built-in attribute to enable window dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
niusia-ua committed Oct 11, 2024
1 parent 744f5e3 commit ebb8082
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ConfirmDialog />
<BlockUI :blocked="loading" full-screen />
<div class="h-full flex flex-col">
<Toolbar class="rounded-none border-0 border-b p-0" draggable="true" @dragstart="() => appWindow.startDragging()">
<Toolbar data-tauri-drag-region class="rounded-none border-0 border-b p-0">
<template #start>
<DropdownTieredMenu id="general_menu" :button="{ icon: 'pi pi-bars' }" :tiered-menu="{ model: menuOptions }" />
<StitchToolSelector />
Expand Down Expand Up @@ -64,7 +64,6 @@
import { useConfirm } from "primevue/useconfirm";
import type { MenuItem } from "primevue/menuitem";
import { open, save } from "@tauri-apps/plugin-dialog";
import { getCurrentWebviewWindow } from "@tauri-apps/api/webviewWindow";
import CanvasPanel from "./components/CanvasPanel.vue";
import PalettePanel from "./components/PalettePanel.vue";
import DropdownTieredMenu from "./components/toolbar/DropdownTieredMenu.vue";
Expand All @@ -76,8 +75,6 @@
import * as patternApi from "./api/pattern";
import type { Pattern } from "./schemas/pattern";
const appWindow = getCurrentWebviewWindow();
const appStateStore = useAppStateStore();
const loading = ref(false);
Expand Down

0 comments on commit ebb8082

Please sign in to comment.