mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 05:01:41 +08:00
testing
This commit is contained in:
parent
bc0219700a
commit
4f6928c1e7
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user