We are trying to use the mobiscroll cell click events like:
const options: MbscEventcalendarOptions = {
// other options
onCellClick: (args: MbscCellClickEvent, inst: EventcalendarBase) => {
// show a custom toast with additional information about the cell/event.
},
onCellRightClick: (args: MbscCellClickEvent, inst: EventcalendarBase) => {
// open a custom context menu popup with actions for the cell/event.
},
};
I’ve omitted the code for the actual cell click handlers for simplicity.
Both onCellClick and onCellRightClick events work on desktop and on Android.
On iPhone only the onCellClick works, but the onCellRightClick not unfortunately.
It’s a bit tricky. On touch screens the onCellRightClick is firing on long-tap if dragToCreate is disabled (false). I do not know exactly if it behaves the same on iPhones. As a workaround you could use the onEventDragStart event. Note that dragToCreate must be enabled. I’ve returned false in the onEventCreate method and added a cssClass in the extendDefaultEvent to hide it from css. Here is a small example (I’ve used React):
@Istvan_Csiszer unfortunately it was not working on iphone.
And on desktop this enables drag support which is visually visible when dragging a cell (which is undesired)
Could you be a bit more specific? What did not work on iPhone exactly?
And for desktop consider using the responsive option. You can set different options for different container widths (any calendar option), and you can disable drag support for desktop.