diff --git a/common/draw_panel.cpp b/common/draw_panel.cpp index eabe08217b..6d2048989c 100644 --- a/common/draw_panel.cpp +++ b/common/draw_panel.cpp @@ -980,12 +980,7 @@ void EDA_DRAW_PANEL::OnMouseWheel( wxMouseEvent& event ) else if( wheelRotation > 0 ) { if( event.ShiftDown() && !event.ControlDown() ) - { - if( axis == 0 ) - cmd.SetId( ID_PAN_UP ); - else - cmd.SetId( ID_PAN_RIGHT ); - } + cmd.SetId( ID_PAN_UP ); else if( event.ControlDown() && !event.ShiftDown() ) cmd.SetId( ID_PAN_LEFT ); else if( offCenterReq ) @@ -996,12 +991,7 @@ void EDA_DRAW_PANEL::OnMouseWheel( wxMouseEvent& event ) else if( wheelRotation < 0 ) { if( event.ShiftDown() && !event.ControlDown() ) - { - if( axis == 0 ) - cmd.SetId( ID_PAN_DOWN ); - else - cmd.SetId( ID_PAN_LEFT ); - } + cmd.SetId( ID_PAN_DOWN ); else if( event.ControlDown() && !event.ShiftDown() ) cmd.SetId( ID_PAN_RIGHT ); else if( offCenterReq )