Fix touchpad scrolling on OSX (merge of rev. 6606 from development branch).
This commit is contained in:
parent
1f6789e692
commit
6c25b29e9f
|
@ -991,12 +991,7 @@ void EDA_DRAW_PANEL::OnMouseWheel( wxMouseEvent& event )
|
||||||
else if( wheelRotation > 0 )
|
else if( wheelRotation > 0 )
|
||||||
{
|
{
|
||||||
if( event.ShiftDown() && !event.ControlDown() )
|
if( event.ShiftDown() && !event.ControlDown() )
|
||||||
{
|
cmd.SetId( ID_PAN_UP );
|
||||||
if( axis == 0 )
|
|
||||||
cmd.SetId( ID_PAN_UP );
|
|
||||||
else
|
|
||||||
cmd.SetId( ID_PAN_RIGHT );
|
|
||||||
}
|
|
||||||
else if( event.ControlDown() && !event.ShiftDown() )
|
else if( event.ControlDown() && !event.ShiftDown() )
|
||||||
cmd.SetId( ID_PAN_LEFT );
|
cmd.SetId( ID_PAN_LEFT );
|
||||||
else if( offCenterReq )
|
else if( offCenterReq )
|
||||||
|
@ -1007,12 +1002,7 @@ void EDA_DRAW_PANEL::OnMouseWheel( wxMouseEvent& event )
|
||||||
else if( wheelRotation < 0 )
|
else if( wheelRotation < 0 )
|
||||||
{
|
{
|
||||||
if( event.ShiftDown() && !event.ControlDown() )
|
if( event.ShiftDown() && !event.ControlDown() )
|
||||||
{
|
cmd.SetId( ID_PAN_DOWN );
|
||||||
if( axis == 0 )
|
|
||||||
cmd.SetId( ID_PAN_DOWN );
|
|
||||||
else
|
|
||||||
cmd.SetId( ID_PAN_LEFT );
|
|
||||||
}
|
|
||||||
else if( event.ControlDown() && !event.ShiftDown() )
|
else if( event.ControlDown() && !event.ShiftDown() )
|
||||||
cmd.SetId( ID_PAN_RIGHT );
|
cmd.SetId( ID_PAN_RIGHT );
|
||||||
else if( offCenterReq )
|
else if( offCenterReq )
|
||||||
|
|
Loading…
Reference in New Issue