Eat context menu events. Fixes #21

This commit is contained in:
Will Scullin 2020-01-12 11:42:44 -08:00
parent ce0a1b59ce
commit 91d1d753ad
No known key found for this signature in database
GPG Key ID: 9092A5C0A673416B

View File

@ -811,6 +811,9 @@ export function initUI(apple2, disk2, cffa, e) {
io.buttonUp(evt.which == 1 ? 0 : 1);
}
});
canvas.addEventListener('contextmenu', function(evt) {
evt.preventDefault();
});
});
document.body.addEventListener('mousemove', _mousemove);