Skip to content

Commit

Permalink
Fix touchpad scrolling on OSX.
Browse files Browse the repository at this point in the history
  • Loading branch information
bstegmaier75 authored and Wayne Stambaugh committed Mar 1, 2016
1 parent eea5202 commit 59f6a72
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions common/draw_panel.cpp
Expand Up @@ -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 )
Expand All @@ -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 )
Expand Down

0 comments on commit 59f6a72

Please sign in to comment.