1. On touch/mobile devices, you can open the event context menu using the standard two-finger tap gesture. If you use eventTapAndHoldHandling: "ContextMenu" you can open the context menu using tap-and-hold gesture. However, that will disable event moving because normally this gesture is used to activate the moving mode.
See also:
https://doc.daypilot.org/calendar/touch-devices/
2. You can open a context menu for a time range selection using onTimeRangeSelected event. If the selection stays active (you don't clear it using clearSelection() method), you can invoke it again on the selection using a two-finger tap.
Example:
config: DayPilot.CalendarConfig = {
viewType: "Week",
onTimeRangeSelected: async (args) => {
this.calendar.control.contextMenuSelection?.show(args);
},
contextMenu: new DayPilot.Menu({
items: [
{text: "Edit...", onClick: args => DayPilot.Modal.alert("Edit")}
]
}),
contextMenuSelection: new DayPilot.Menu({
items: [
{text: "Create...", onClick: args => DayPilot.Modal.alert("Edit")}
]
}),
eventTapAndHoldHandling: "ContextMenu",
};