@@ -18,8 +18,9 @@ namespace HoloToolkit.Unity
1818 /// information about the manipulation gesture via ManipulationOffset and ManipulationHandPosition.
1919 ///
2020 /// Editor and Companion App Input can also be used by assigning a keyboard select key and
21- /// using the right mouse button to select the currently focused object. Using Gestures with
22- /// mouse is currently not supported.
21+ /// using the right mouse button to select the currently focused object.
22+ ///
23+ /// Using Gestures with mouse is currently not supported.
2324 /// </remarks>
2425 [ RequireComponent ( typeof ( GazeManager ) ) ]
2526 public partial class GestureManager : Singleton < GestureManager >
@@ -218,14 +219,13 @@ private void InteractionManager_SourcePressed(InteractionSourceState state)
218219 pressedInteractionSource . Add ( state . source . id ) ;
219220 }
220221
221- // If we're not currently processing a manipulation then start .
222+ // Don't start another manipulation gesture if one is already underway .
222223 if ( ! ManipulationInProgress )
223224 {
224225 // Cache our current source state for use later.
225226 currentInteractionSourceState = state ;
226227
227228 // Gesture Support for Controllers: (i.e. Clicker, Xbox Controller, etc.)
228- // Don't start another manipulation gesture if one is already underway.
229229 if ( state . source . kind == InteractionSourceKind . Controller )
230230 {
231231 OnManipulation ( inProgress : true , offset : ManipulationPosition ) ;
@@ -249,6 +249,8 @@ private void InteractionManager_SourceUpdated(InteractionSourceState state)
249249 // Check the current interaction source matches our cached value.
250250 if ( ManipulationInProgress && state . source . id == currentInteractionSourceState . source . id )
251251 {
252+ currentInteractionSourceState = state ;
253+
252254 // Gesture Support for Controllers: (i.e. Clicker, Xbox Controller, etc.)
253255 if ( state . source . kind == InteractionSourceKind . Controller )
254256 {
0 commit comments