All: fixing a recent problem when using scroll bars: the full screen was redrawn, that can be very slow in Pcbnew.

This commit is contained in:
charras 2010-02-23 20:22:31 +00:00
parent 09cccdff3e
commit ec6a84d0bb
1 changed files with 2 additions and 2 deletions

View File

@ -489,7 +489,7 @@ void WinEDA_DrawPanel::OnScroll( wxScrollWinEvent& event )
"posX=%d, posY=%d" ), ppux, ppuy, unitsX, unitsY, x, y );
#endif
Scroll( x/ppux, y/ppux );
Scroll( x/ppux, y/ppuy );
event.Skip();
}
@ -1443,7 +1443,7 @@ void WinEDA_DrawPanel::OnPan( wxCommandEvent& event )
if( y > maxY )
y = maxY;
Scroll( x/ppux, y/ppux );
Scroll( x/ppux, y/ppuy );
}