diff --git a/src/vsg/app/Trackball.cpp b/src/vsg/app/Trackball.cpp index f748b7b4e2..c384ad66af 100644 --- a/src/vsg/app/Trackball.cpp +++ b/src/vsg/app/Trackball.cpp @@ -192,7 +192,9 @@ void Trackball::apply(ButtonReleaseEvent& buttonRelease) if (!windowOffsets.empty() && windowOffsets.count(buttonRelease.window) == 0) return; - if (supportsThrow) _thrown = _previousPointerEvent && (buttonRelease.time == _previousPointerEvent->time); + if (supportsThrow) _thrown = _previousPointerEvent && + (std::chrono::duration_cast( + buttonRelease.time - _previousPointerEvent->time).count() == 0); _lastPointerEventWithinRenderArea = withinRenderArea(buttonRelease); _hasPointerFocus = false;