I use http://medialize.imtqy.com/jQuery-contextMenu/ to generate some parameter when right clicking and it works fine on desktop browsers, but it doesn't work when touching the device screen.
what code should be added for it to work on touch devices like ipad
I use the following code for the desktop
$(function(){
jQuery.contextMenu({
selector: '.context-menu-one',
callback: function(key, options) {
window.console && console.log(m) || alert(m); */
if(key=="delete")
{
}
if(key=="copy")
{
}
},
items: {
"copy": {name: "Kopieren", icon: "copy"},
"delete": {name: "Löschen", icon: "delete"},
}
});
source
share