File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Assets/MixedRealityToolkit-SDK/Features/Input/Handlers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public virtual void OnBeforeFocusChange(FocusEventData eventData)
5050 // If we're the new target object
5151 // Add the pointer to the list of focusers
5252 // and update our hasFocus flag if focusing is enabled.
53- if ( eventData . NewFocusedObject == this )
53+ if ( eventData . NewFocusedObject == gameObject )
5454 {
5555 eventData . Pointer . FocusTarget = this ;
5656 Focusers . Add ( eventData . Pointer ) ;
@@ -62,7 +62,7 @@ public virtual void OnBeforeFocusChange(FocusEventData eventData)
6262 }
6363 // If we're the old focused target object
6464 // update our flag and remove the pointer from our list.
65- else if ( eventData . OldFocusedObject == this )
65+ else if ( eventData . OldFocusedObject == gameObject )
6666 {
6767 hasFocus = false ;
6868
You can’t perform that action at this time.
0 commit comments