From bfb88c8531c98e96586e39bf9031364294b7f597 Mon Sep 17 00:00:00 2001 From: ffreyer Date: Mon, 2 Oct 2023 17:58:15 +0200 Subject: [PATCH] propagate scroll consumes --- src/makielayout/blocks/axis.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/makielayout/blocks/axis.jl b/src/makielayout/blocks/axis.jl index 44ecafcf582..729b90c7494 100644 --- a/src/makielayout/blocks/axis.jl +++ b/src/makielayout/blocks/axis.jl @@ -42,8 +42,8 @@ function register_events!(ax, scene) on(scene, evs.scroll) do s if is_mouseinside(scene) - scrollevents[] = ScrollEvent(s[1], s[2]) - return Consume(true) + result = setindex!(scrollevents, ScrollEvent(s[1], s[2])) + return result === true ? Consume(true) : Consume(false) end return Consume(false) end