Skip to content

Commit

Permalink
Add drag delay to avoid conflict with click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Apr 17, 2024
1 parent 9abe918 commit 85c6894
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/components/ActivityBar/ActivityBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ import NotificationsPanel from "@/components/Panels/NotificationsPanel.vue";
import SettingsPanel from "@/components/Panels/SettingsPanel.vue";
import ToolPanel from "@/components/Panels/ToolPanel.vue";
// require user to long click before dragging
const DRAG_DELAY = 50;
const { config, isConfigLoaded } = useConfig();
const route = useRoute();
Expand Down Expand Up @@ -150,6 +153,7 @@ watch(
:class="{ 'activity-popper-disabled': isDragging }"
:force-fallback="true"
chosen-class="activity-chosen-class"
:delay="DRAG_DELAY"
drag-class="activity-drag-class"
ghost-class="activity-chosen-class"
@start="isDragging = true"
Expand Down

0 comments on commit 85c6894

Please sign in to comment.