title: onFling only called when swiping Left
body: <p>Hello stackoverflow community,</p>
  
  <p>i have a very strange problem with my SimpleOnGestureListener:</p>
  
  <pre><code>public class OnSwipeTouchListener implements View.OnTouchListener {
  //constructor...
  @SuppressWarnings("deprecation")
  private final GestureDetector gestureDetector = new GestureDetector(new GestureListener());
  
  public boolean onTouch(final View v, final MotionEvent event) {
      return gestureDetector.onTouchEvent(event);
  }
  
  private final class GestureListener extends GestureDetector.SimpleOnGestureListener {
  
      private static final int SWIPE_THRESHOLD = 100;
      private static final int SWIPE_VELOCITY_THRESHOLD = 100;    
  
      @Override
      public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
          try {
               float diffX = e2.getRawX() - e1.getRawX();
               if (Math.abs(diffX) &gt; SWIPE_THRESHOLD &amp;&amp; Math.abs(velocityX) &gt; SWIPE_VELOCITY_THRESHOLD) {
                      if (diffX &gt; 0) {
                          onSwipeRight();
                      }
                      if(diffX &lt; 0) {
                          onSwipeLeft();
                      }
                  }
          } catch (Exception exception) {
              exception.printStackTrace();
          }
          return false;
      }
  }
  
  public void onSwipeRight() {
      Log.i("PPTREMOTE", "Swiped Right!");
      main.previousSlide();
  }
  
  public void onSwipeLeft() {
      Log.i("PPTREMOTE", "Swiped Left!");
      main.nextSlide();
    }
  }
  </code></pre>
  
  <p>My problem is very strange. onFling is only called, when I'm swiping left ?! </p>
  
  <p>theporenta</p>