Permalink
Browse files

Merge pull request #78 from githubbar/patch-1

Fixed issue: oddgames#24
  • Loading branch information...
2 parents 973a347 + 461d815 commit 108e613bc0f1128225329352e003307ebd91439c @FrittenKeeZ FrittenKeeZ committed Feb 22, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Assets/Plugins/UIToolkit/UIElements/UISwipeDetector.cs
@@ -132,12 +132,12 @@ private bool processTouchInfoWithTouch( TouchInfo touchInfo, Touch touch )
// Check the delta move positions. We can rule out at least 2 directions
if( touch.deltaPosition.x > 0.0f )
touchInfo.swipeDetectionState &= ~SwipeDirection.Left;
- else
+ if( touch.deltaPosition.x < 0.0f )
touchInfo.swipeDetectionState &= ~SwipeDirection.Right;
if( touch.deltaPosition.y < 0.0f )
- touchInfo.swipeDetectionState &= ~SwipeDirection.Up;
- else
+ touchInfo.swipeDetectionState &= ~SwipeDirection.Up;
+ if( touch.deltaPosition.y > 0.0f )
touchInfo.swipeDetectionState &= ~SwipeDirection.Down;
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WEBPLAYER

0 comments on commit 108e613

Please sign in to comment.