Skip to content

Commit

Permalink
change for z for page up/down
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and nyalldawson committed Jan 13, 2021
1 parent b3d2059 commit 36e3229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/3d/qgscameracontroller.cpp
Expand Up @@ -520,11 +520,11 @@ void QgsCameraController::onKeyPressedFlyNavigation( Qt3DInput::QKeyEvent *event

case Qt::Key_PageUp:
case Qt::Key_Q:
cameraPosDiff = mCameraMovementSpeed * cameraUp;
cameraPosDiff = mCameraMovementSpeed * QVector3D( 0.0f, 1.0f, 0.0f );
break;
case Qt::Key_PageDown:
case Qt::Key_E:
cameraPosDiff = - mCameraMovementSpeed * cameraUp;
cameraPosDiff = - mCameraMovementSpeed * QVector3D( 0.0f, 1.0f, 0.0f );
break;
}

Expand Down

0 comments on commit 36e3229

Please sign in to comment.