From ec05084d71f04ba2e95862c038749d9da3b664a2 Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Wed, 14 Dec 2022 15:45:41 -0300 Subject: [PATCH] ignore wheel on ctrl key and remove debug Signed-off-by: Victor Seiji Hariki --- js/ui/tool/dream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index 5e8cd2b..9d71d3a 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -517,7 +517,7 @@ const _generate = async (endpoint, request, bb, options = {}) => { ); const onwheelhandler = mouse.listen.world.onwheel.on( (evn, state) => { - console.debug(evn, state); + if (evn.evn.ctrlKey) return; if (!state.dream_processed && bb.contains(evn.x, evn.y)) { if (evn.delta < 0) nextImg(); else prevImg();