Skip to content

Commit 9aad380

Browse files
author
Angela Hillier
committed
TapToPlace needs to let the event system know when a click has been handled
Fixes issue #1328. If TapToPlace does not call eventData.Use() then fallback handlers will repsond to the tap/click event. This can lead to undersirable behavior while placing an object.
1 parent 59726cd commit 9aad380

File tree

1 file changed

+1
-0
lines changed
  • Assets/HoloToolkit/Input/Scripts/Utilities/Interactions

1 file changed

+1
-0
lines changed

Assets/HoloToolkit/Input/Scripts/Utilities/Interactions/TapToPlace.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public virtual void OnInputClicked(InputClickedEventData eventData)
134134
// On each tap gesture, toggle whether the user is in placing mode.
135135
IsBeingPlaced = !IsBeingPlaced;
136136
HandlePlacement();
137+
eventData.Use();
137138
}
138139

139140
private void HandlePlacement()

0 commit comments

Comments
 (0)