fix: prevent drag creation on touch events in useTimeGridInteractions
This commit is contained in:
@@ -80,6 +80,7 @@ export function useTimeGridInteractions({
|
|||||||
dayDate: Date,
|
dayDate: Date,
|
||||||
) => {
|
) => {
|
||||||
if (isMobile) return;
|
if (isMobile) return;
|
||||||
|
if (e.pointerType === "touch") return;
|
||||||
if (e.button !== 0) return;
|
if (e.button !== 0) return;
|
||||||
if ((e.target as HTMLElement).closest("[data-calendar-event], [data-resize-handle]")) return;
|
if ((e.target as HTMLElement).closest("[data-calendar-event], [data-resize-handle]")) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user