Skip to content

Commit f1cf6d7

Browse files
committed
Moved setting the Focused object between the cancel and starting of the gesture recognizer.
1 parent 3a067e9 commit f1cf6d7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Assets/HoloToolkit/Input/Scripts/GestureManager.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ void Start()
116116
gestureRecognizer.StartCapturingGestures();
117117
manipulationRecognizer.StartCapturingGestures();
118118
}
119-
120-
121-
119+
122120
private void InteractionManager_SourcePressed(InteractionSourceState state)
123121
{
124122
if (!HandPressed)
@@ -225,6 +223,7 @@ void LateUpdate()
225223
// If the currently focused object doesn't match the old focused object, cancel the current gesture.
226224
// Start looking for new gestures. This is to prevent applying gestures from one hologram to another.
227225
gestureRecognizer.CancelGestures();
226+
FocusedObject = newFocusedObject;
228227
gestureRecognizer.StartCapturingGestures();
229228
}
230229

@@ -234,7 +233,6 @@ void LateUpdate()
234233
OnTap();
235234
}
236235
#endif
237-
FocusedObject = newFocusedObject;
238236
}
239237

240238
void OnDestroy()

0 commit comments

Comments
 (0)