diff --git a/Runtime/Scripts/Handles/BaseHandle.cs b/Runtime/Scripts/Handles/BaseHandle.cs index 9a6400d16..8f383da3c 100644 --- a/Runtime/Scripts/Handles/BaseHandle.cs +++ b/Runtime/Scripts/Handles/BaseHandle.cs @@ -122,8 +122,9 @@ public void OnBeginDrag(RayEventData eventData) if (!m_LastClickTimes.TryGetValue(rayOrigin, out lastClickTime)) m_LastClickTimes[rayOrigin] = new DateTime(); - var timeSinceLastClick = (float)(DateTime.Now - lastClickTime).TotalSeconds; - m_LastClickTimes[rayOrigin] = DateTime.Now; + var now = DateTime.UtcNow; + var timeSinceLastClick = (float)(now - lastClickTime).TotalSeconds; + m_LastClickTimes[rayOrigin] = now; if (UIUtils.IsDoubleClick(timeSinceLastClick)) OnDoubleClick(handleEventData);