Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slower the pan speed, increase wheel speed, make pan and pinch exclusive in DeflectPlugin #66

Merged
merged 1 commit into from
Nov 24, 2016

Conversation

tribal-tec
Copy link
Contributor

No description provided.

@@ -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;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, what are those four "getMotionSpeed() / 100.f", can't that be part of the motion speed? Or at least defined as a constant?

@tribal-tec tribal-tec changed the title Slower the pan speed, increase wheel speed Slower the pan speed, increase wheel speed, make pan and pinch exclusive in DeflectPlug Nov 24, 2016
@tribal-tec tribal-tec changed the title Slower the pan speed, increase wheel speed, make pan and pinch exclusive in DeflectPlug Slower the pan speed, increase wheel speed, make pan and pinch exclusive in DeflectPlugin Nov 24, 2016
@tribal-tec tribal-tec merged commit e9ba518 into BlueBrain:master Nov 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants