One option is to use the higher level interaction interface of the axis:
register_interaction!(ax1, :my_interaction) do event::MouseEvent, axis
if event.type === MouseEventTypes.leftclick
println("You clicked on the axis at datapos $(event.data)")
end
end
see this section in the docs.