fix: prevent drag creation on touch events in useTimeGridInteractions

This commit is contained in:
Linus Rath
2026-04-27 13:37:34 +02:00
parent 3e1de10213
commit e9b3eacbb7
+1
View File
@@ -80,6 +80,7 @@ export function useTimeGridInteractions({
dayDate: Date,
) => {
if (isMobile) return;
if (e.pointerType === "touch") return;
if (e.button !== 0) return;
if ((e.target as HTMLElement).closest("[data-calendar-event], [data-resize-handle]")) return;