This commit is contained in:
Anton Lavrenov 2022-10-03 12:03:00 -05:00
parent bc0219700a
commit 4f6928c1e7

View File

@ -45,10 +45,13 @@
fill: 'red',
});
layer.add(rect);
document.body.onclick = () => {
alert('click');
};
stage.on('wheel', (e) => {
e.evt.preventDefault();
console.log('wheel');
});
stage.on('contextmenu', (e) => {
console.log('click');
});
</script>
</body>
</html>