aldabil21/react-scheduler

Copy events while dragging

Closed this issue · 2 comments

Hi, when dragging an event and pressing the Ctrl key, the cursor changes to indicate a copy action. Is there a way to get this information in the onEventDrop callback?

in next release, the onEventDrop will include the DragEvent
you can get the info you need and more, new definition is like:

  onEventDrop?(
    event: DragEvent<HTMLButtonElement>,
    droppedOn: Date,
    updatedEvent: ProcessedEvent,
    originalEvent: ProcessedEvent
  ): Promise<ProcessedEvent | void>;

That's great. Thank you!