kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #10535
Re: [PATCH] - Implement auto panning while moving in EDA_DRAW_PANEL::OnMouseEvent()
Looking at it again, I think there *still* some asymmetry with respect to the if() test.
The if() test should probably be:
if( size.x <= event.GetX() || size.y <= event.GetY()
|| event.GetX() < 0 || event.GetY() < 0 )
So that if the mouse is even one pixel outside the client, or more, then the goodness happens.
The client windows runs from 0 to size.{x,y} - 1
Try that change also please Chris.
Follow ups
References