Skip to content

Commit c60cff0

Browse files
committed
fix calendar flickering on move for non-aligned entries
this is a trade-off where for non grid aligned entries, the cursor position is a bit off, but data and visual are stil in sync. otherwise fc overrides height on drag, causing flickers.
1 parent cae41e4 commit c60cff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/packages/ui/src/FullCalendar/TimeEntryCalendar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ const calendarOptions = computed(() => {
368368
slotDuration: formatDuration(s.slotMinutes * 60),
369369
slotLabelInterval: '01:00:00',
370370
slotLabelFormat: getSlotLabelFormat(),
371-
snapDuration: '00:01:00',
371+
snapDuration: formatDuration(s.snapMinutes * 60),
372372
firstDay: getFirstDay(),
373373
allDaySlot: false,
374374
nowIndicator: true,

0 commit comments

Comments
 (0)