MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.33k stars 292 forks source link

`select_point` is broken #3977

Open Datseris opened 1 week ago

Datseris commented 1 week ago

The interactive function select_point is broken and I don't know how to fix it... :(

It doesn't really select a point, but it makes the rectangle for zooming to be visible and sometimes it also zooms.

MWE:

using GLMakie
fig, ax = scatter(rand(100, 2))
spoint = select_point(ax.scene; marker = :circle)
on(spoint) do pos
    print(pos)
end
display(fig)
  [ee78f7c6] Makie v0.21.3
asinghvi17 commented 1 week ago

It's working fine for me on mac, but when I drag the mouse even a little then it does activate the rectangle zoom. Could that be the issue you're having?

https://github.com/MakieOrg/Makie.jl/assets/32143268/454754e6-2847-4568-950b-8cb87d902ff4

The appropriate points are printed in the REPL as well.

Datseris commented 1 week ago

yeah this is the issue I was having. But for me it also zooms in the rectangle if I drag the mouse while clicking. For you it doesnt?