Right click on touch screen device

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")
            {
                //some action
            }

            if(key=="copy")
            {

                //some action              
            }

        },
        items: {
            "copy": {name: "Kopieren", icon: "copy"},
            "delete": {name: "Löschen", icon: "delete"},

        }
    });
+4
source share

Source: https://habr.com/ru/post/1538179/


All Articles