From 59f6a720f08b536063a81256dbc6b382953a02ae Mon Sep 17 00:00:00 2001 From: Bernhard Stegmaier Date: Tue, 1 Mar 2016 15:19:00 -0500 Subject: [PATCH] Fix touchpad scrolling on OSX. --- common/draw_panel.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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 )