mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
When using mouse lock navigation, invert the vertical axis
This commit is contained in:
parent
7b7f7c2e00
commit
f48cd28207
@ -583,7 +583,7 @@ void QgsCameraController::onPositionChangedFlyNavigation( Qt3DInput::QMouseEvent
|
||||
double dy = mouse->y() - mMousePos.y();
|
||||
if ( mPressedButton == Qt3DInput::QMouseEvent::LeftButton || mPressedButton == Qt3DInput::QMouseEvent::MiddleButton || ( mCaptureFpsMouseMovements && mPressedButton != Qt3DInput::QMouseEvent::RightButton ) )
|
||||
{
|
||||
float diffPitch = 0.2f * dy;
|
||||
float diffPitch = ( mCaptureFpsMouseMovements ? -1 : 1 ) * 0.2f * dy;
|
||||
float diffYaw = - 0.2f * dx;
|
||||
rotateCamera( diffPitch, diffYaw );
|
||||
updateCameraFromPose( false );
|
||||
|
Loading…
x
Reference in New Issue
Block a user