Fix for vertical/horizontal (using Ctrl/Shift + mousewheel) panning in GAL canvas.
This commit is contained in:
parent
4f678a919c
commit
0e69277074
|
@ -134,8 +134,8 @@ void WX_VIEW_CONTROLS::onWheel( wxMouseEvent& aEvent )
|
|||
if( aEvent.ControlDown() || aEvent.ShiftDown() )
|
||||
{
|
||||
// Scrolling
|
||||
VECTOR2D scrollVec = m_view->ToWorld( m_view->GetScreenPixelSize() *
|
||||
( (double) aEvent.GetWheelRotation() * wheelPanSpeed ), false );
|
||||
VECTOR2D scrollVec = m_view->ToWorld( m_view->GetScreenPixelSize(), false ) *
|
||||
( (double) aEvent.GetWheelRotation() * wheelPanSpeed );
|
||||
double scrollSpeed;
|
||||
|
||||
if( abs( scrollVec.x ) > abs( scrollVec.y ) )
|
||||
|
|
Loading…
Reference in New Issue