From 4f6928c1e76e90bef336ad189994148d1e686df1 Mon Sep 17 00:00:00 2001 From: Anton Lavrenov Date: Mon, 3 Oct 2022 12:03:00 -0500 Subject: [PATCH] testing --- test/sandbox.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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'); + });