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
30bdfb9fdd
commit
179a67e5fa
@ -15,6 +15,8 @@ window.addEventListener('load', () => {
|
|||||||
deckName = document.querySelector('#card-container').getAttribute("data-deckName");
|
deckName = document.querySelector('#card-container').getAttribute("data-deckName");
|
||||||
xhr.open("GET", "/deck/" + deckName + "/deck.json");
|
xhr.open("GET", "/deck/" + deckName + "/deck.json");
|
||||||
xhr.send();
|
xhr.send();
|
||||||
|
|
||||||
|
window.addEventListener("contextmenu", event => event.preventDefault());
|
||||||
});
|
});
|
||||||
|
|
||||||
let cardInteract = interact('.card', {ignoreFrom: '.in-list'})
|
let cardInteract = interact('.card', {ignoreFrom: '.in-list'})
|
||||||
|
Loading…
Reference in New Issue
Block a user