Prevent right click context menu
Chrome (again) makes a context menu when a touch pointer is held. We'll have none of that
This commit is contained in:
parent
fc23e7f2ef
commit
07648ce1c5
@ -15,6 +15,8 @@ window.addEventListener('load', () => {
|
||||
deckName = document.querySelector('#card-container').getAttribute("data-deckName");
|
||||
xhr.open("GET", "/deck/" + deckName + "/deck.json");
|
||||
xhr.send();
|
||||
|
||||
window.addEventListener("contextmenu", event => event.preventDefault());
|
||||
});
|
||||
|
||||
let cardInteract = interact('.card', {ignoreFrom: '.in-list'})
|
||||
|
Loading…
Reference in New Issue
Block a user