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