diff --git a/test/sandbox.html b/test/sandbox.html index 644c0fcf..38276fcb 100644 --- a/test/sandbox.html +++ b/test/sandbox.html @@ -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'); + });