Skip to content

Commit

Permalink
propagate scroll consumes
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Oct 2, 2023
1 parent bcb45af commit bfb88c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/makielayout/blocks/axis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bfb88c8

Please sign in to comment.