Legacy mode: Pan with mouse middle button fix an unwanted displacement of the drawings (half width of scroll bars) when starting the pan (due to a parameter (new reference position of scroll bars in IU) which was stored with an incorrect value)
Minor enhancement during pan: the mouse cursor shape is modified.
This commit is contained in:
@@ -1152,12 +1152,14 @@ void EDA_DRAW_PANEL::OnMouseEvent( wxMouseEvent& event )
|
||||
|
||||
INSTALL_UNBUFFERED_DC( dc, this );
|
||||
CrossHairOff( &dc );
|
||||
SetCursor( wxCURSOR_SIZING );
|
||||
}
|
||||
|
||||
if( event.ButtonUp( wxMOUSE_BTN_MIDDLE ) && m_enableMiddleButtonPan )
|
||||
{
|
||||
INSTALL_UNBUFFERED_DC( dc, this );
|
||||
CrossHairOn( &dc );
|
||||
SetCursor( (wxStockCursor) m_currentCursor );
|
||||
}
|
||||
|
||||
if( event.MiddleIsDown() && m_enableMiddleButtonPan )
|
||||
|
||||
Reference in New Issue
Block a user