1
此代碼無效。如何防止織物中的上下文菜單?preventDefault on mouse up
canvas.on('mouse:up', function(options) {
if(options.target){
switch(options.e.button){
case 0:
// left click
break;
case 2:
// right click
options.e.preventDefault();
break;
}
}
});