The stopDragging() method cancels any active drag-and-drop operation in the JavaScript Scheduler component.
DayPilot.Scheduler.stopDragging()Call this static method to cancel event moving, event resizing, external drag and drop, or time range selecting.
This is a static method, so call it on DayPilot.Scheduler, not on a Scheduler instance.
DayPilot.Scheduler.stopDragging();The following example handles the Escape key and cancels the current drag-and-drop action:
window.addEventListener("keydown", (ev) => {
if (ev.key === "Escape") {
DayPilot.Scheduler.stopDragging();
}
});Event Moving [doc.daypilot.org]
Event Resizing [doc.daypilot.org]
External Drag and Drop [doc.daypilot.org]
Time Range Selecting [doc.daypilot.org]