From: John H. <jd...@gm...> - 2008-11-26 16:59:40
|
On Wed, Nov 26, 2008 at 10:41 AM, Drain, Theodore R <the...@jp...> wrote: > I'm pretty sure this is exactly what's happening. This is also annoying when you're trying to use a zoom rectangle and want to start at some point in the plot and drag it to the boundary. We've been planning on putting some time in to fix this this but just haven't been able to make the time yet. > > I think one possible solution is that anytime the mouse moves outside the axes, it should get one last event that is at the boundary which would require tracking which axes the last event was sent in. We haven't tried to see how hard that is to implement thought... probably fairly easy using a class level attr in the MouseEvent. Another possibility would be to add support for figure_enter_event, figure_leave_event, axes_enter_event, axes_leave_event. The user code would have to separately process the axes_leave_event but this might be the cleanest solution. I am happy to add support for these ... JDH |