I have a div which is supposed to open a custom menu. Therefore I am using Jquery's contextmenu event.
Currently I am binding the event this way:
$( "#idDiv" ).contextmenu(function() {
alert( "Handler for .contextmenu() called." );
});
I also tried to bind it like this:
$( "#idDiv" ).on('contextmenu', function() {
alert( "Handler for .contextmenu() called." );
});
I even tried disabling the default ios behaviour for longpress by using:
body { -webkit-touch-callout: none !important; }
input { -webkit-user-select: none !important; }
Still it didn't work. Can anyone help me with this?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…