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