Skip to content

Commit

Permalink
Disabled continuous rotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna committed Mar 18, 2010
1 parent 9184932 commit dfa524b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,7 @@ bool Viewer::on_button_release_event(GdkEventButton* event)
if (!shiftIsDown)
{
// Set the rotation speed based on how far the cursor has moved since the mouse down event
long difference = (long)timeOfLastMotionEvent - (long)event->time;
if (difference > -50)
rotationSpeed = (event->x - mouseDownPos[0]) / 10;

}

// Set the appropriate flags to true and false
Expand Down

0 comments on commit dfa524b

Please sign in to comment.