Skip to content

Commit

Permalink
Slower the pan speed, increase wheel speed
Browse files Browse the repository at this point in the history
  • Loading branch information
tribal-tec committed Nov 23, 2016
1 parent 801b26a commit be44fca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion brayns/common/camera/AbstractManipulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace
{
const Vector3f UNIT_Y = { 0.f, 1.f, 0.f };
const Vector3f UNIT_Z = { 0.f, 0.f, 1.f };
const float DEFAULT_MOTION_SPEED = 0.01f;
const float DEFAULT_MOTION_SPEED = 0.1f;
const float DEFAULT_ROTATION_SPEED = 0.005f;

}
Expand Down
4 changes: 2 additions & 2 deletions brayns/common/camera/FlyingModeManipulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ void FlyingModeManipulator::dragRight( const Vector2i& to,
void FlyingModeManipulator::dragMiddle( const Vector2i& to,
const Vector2i& from )
{
const float x = ( to.x() - from.x( )) * getMotionSpeed();
const float y = ( to.y() - from.y( )) * getMotionSpeed();
const float x = ( to.x() - from.x( )) * getMotionSpeed() / 100.f;
const float y = ( to.y() - from.y( )) * getMotionSpeed() / 100.f;
translate( { x, y, 0.f }, true );
}

Expand Down
4 changes: 2 additions & 2 deletions brayns/common/camera/InspectCenterManipulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ void InspectCenterManipulator::dragRight( const Vector2i& to,
void InspectCenterManipulator::dragMiddle( const Vector2i& to,
const Vector2i& from )
{
const float x = ( to.x() - from.x() ) * getMotionSpeed();
const float y = ( to.y() - from.y() ) * getMotionSpeed();
const float x = ( to.x() - from.x() ) * getMotionSpeed() / 100.f;
const float y = ( to.y() - from.y() ) * getMotionSpeed() / 100.f;
translate( { x, y, 0.f }, true );
}

Expand Down

0 comments on commit be44fca

Please sign in to comment.