I have tried it and it is not working at all on the desktop. Note that I set the context menu in OnBeforeEventRender too because I set a different context menu according to the event. And there is another area for copying the event. Also, I make the context menu area visible only on small screens. Here is the code I am using:
OnBeforeEventRender: function (instance, scheduler, args) {
//Copy Area
var copyIconAreaStyle = "opacity:0;";
if (instance.CanCopyEvent(args.data)) {
copyIconAreaStyle += "cursor:copy;";
} else {
copyIconAreaStyle += "cursor:no-drop;";
}
var copyIconArea = {
left: 2,
top: 2,
width: 20,
height: 20,
style: copyIconAreaStyle,
visibility: "Hover",
css: 'copy-area',
action: "Move",
data: "event-copy"
};
//Context Menu Area
var optionsArea = {
top: 0,
left: 0,
style: "width:100%; height:100%",
css: 'hidden-md hidden-lg',
visibility: "Visible",
onClick: function (args) {
var event = args.source;
instance.ShowEventContextMenu(event);
},
//action: 'ContextMenu'
};
args.data.areas = [
copyIconArea,
optionsArea
];
//Set Context Menu
args.e.contextMenu = menus.menuA;
.
.
.
}