how to prevent context menu when button down in javascript code example
Example: javascript prevent context menu
document.addEventListener('contextmenu', event => event.preventDefault());
document.addEventListener('contextmenu', event => event.preventDefault());