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', fill: 'red',
}); });
layer.add(rect); layer.add(rect);
stage.on('wheel', (e) => {
document.body.onclick = () => { e.evt.preventDefault();
alert('click'); console.log('wheel');
}; });
stage.on('contextmenu', (e) => {
console.log('click');
});
</script> </script>
</body> </body>
</html> </html>