ignore wheel on ctrl key and remove debug

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-12-14 15:45:41 -03:00
parent 5e6b18503b
commit ec05084d71

View file

@ -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();