We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5fc8c3 commit c8760a8Copy full SHA for c8760a8
Assets/HoloToolkit/Input/Scripts/Cursor/Cursor.cs
@@ -417,10 +417,14 @@ public virtual CursorStateEnum CheckCursorState()
417
{
418
if (cursorState != CursorStateEnum.Contextual)
419
420
- if (IsInputSourceDown)
+ if (IsInputSourceDown && visibleHandsCount > 0)
421
422
return CursorStateEnum.Select;
423
}
424
+ else if (IsInputSourceDown && visibleHandsCount == 0)
425
+ {
426
+ IsInputSourceDown = false;
427
+ }
428
else if (cursorState == CursorStateEnum.Select)
429
430
return CursorStateEnum.Release;
@@ -444,4 +448,4 @@ public virtual void OnCursorStateChange(CursorStateEnum state)
444
448
cursorState = state;
445
449
446
450
447
-}
451
+}
0 commit comments