Improved the detection of throwing of the mouse.
This commit is contained in:
@@ -212,6 +212,9 @@ bool NodeTrackerManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter&
|
||||
if (ea.getButtonMask()==0)
|
||||
{
|
||||
|
||||
double timeSinceLastRecordEvent = ea.getTime() - _ga_t0->getTime();
|
||||
if (timeSinceLastRecordEvent>0.01) addMouseEvent(ea);
|
||||
|
||||
if (isMouseMoving())
|
||||
{
|
||||
if (calcMovement())
|
||||
|
||||
@@ -106,6 +106,9 @@ bool TrackballManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter& us
|
||||
{
|
||||
if (ea.getButtonMask()==0)
|
||||
{
|
||||
|
||||
double timeSinceLastRecordEvent = ea.getTime() - _ga_t0->getTime();
|
||||
if (timeSinceLastRecordEvent>0.01) addMouseEvent(ea);
|
||||
|
||||
if (isMouseMoving())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user