prime31/UIToolkit — Issue #24: UISwipeDetector doesn't work on android
Author: githubbar
Created: 2011-10-19 16:39:18+00:00
State: open

Only Up direction works on Android 3.0. All directions work on Win7

void Start () {
var swipeDetector = UISwipeDetector.create( new Rect( 0, 0, Screen.width, 4*H ), 1);
swipeDetector.onSwipe += detectedSwipe;
}

void detectedSwipe( UISwipeDetector sender, SwipeDirection direction )
{
if (direction == SwipeDirection.Down)
// this doesn't work
if (direction == SwipeDirection.Up)
// this works
}