Improved the detection of throwing of the mouse.

This commit is contained in:
Robert Osfield
2007-06-09 17:58:37 +00:00
parent 43ba59f7ec
commit 2532b5f06e
2 changed files with 6 additions and 0 deletions

View File

@@ -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())

View File

@@ -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())
{