Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fivaz committed Feb 12, 2024
1 parent c4d7a7b commit d322572
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
import { isSomethingDragging } from '../calendar-grid/service';
import { getGridRowsStyle } from '../service';
import PanelCore from './panel-core/PanelCore.svelte';
import {
isShort,
persistChange,
} from './service';
import { isShort, persistChange } from './service';
export let userId: string;
Expand Down Expand Up @@ -77,6 +74,7 @@
function unSelect(e: MouseEvent) {
if (!panel || panel.contains(e.target as Node)) return;
e.preventDefault();
isSelected = false;
isSomethingDragging.set(false);
Expand Down Expand Up @@ -105,7 +103,7 @@
dispatch('edit', { event, targetDate });
});
interactivePanel.on('hold', () => {
interactivePanel.pointerEvents({ holdDuration: 300 }).on('hold', () => {
isSelected = true;
isSomethingDragging.set(true);
Expand Down

0 comments on commit d322572

Please sign in to comment.