File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,13 @@ private void OnDisable()
289289 m_ReleaseGesture . Released -= ReleaseGestureReleased ;
290290 if ( m_LongPressGesture != null )
291291 m_LongPressGesture . LongPressed -= LongPressGesturePressed ;
292+
293+ if ( m_DragEvents != null )
294+ m_DragEvents . Clear ( ) ;
295+ if ( m_TapEvents != null )
296+ m_TapEvents . Clear ( ) ;
297+ if ( m_DoubleTapEvents != null )
298+ m_DoubleTapEvents . Clear ( ) ;
292299 }
293300
294301 /// <summary>
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ private void OnDisable()
9191 {
9292 if ( TouchEventManager . Instance == null )
9393 {
94- Log . Error ( "TouchWidget" , "There should be TouchEventManager in the scene! No TouchEventManager found." ) ;
94+ // Log.Error ("TouchWidget", "There should be TouchEventManager in the scene! No TouchEventManager found.");
9595 return ;
9696 }
9797
You can’t perform that action at this time.
0 commit comments