title: Scrollview not flinging after onTouchListener attached
body: <p>I have a ScrollView which has a ViewTreeObserver.OnScrollChangedListener which is not the problem, but once i set the OnTouchListener to figure out when the ScrollView has stopped scrolling, the flinging action on the scrollview does not happen anymore. here is my code: </p>
  
  <p>if i do this it doesnt actually run the method that i have for the onTouch Event and the flinging still happens: </p>
  
  <pre><code>@Override
      public boolean onTouch(View view, MotionEvent event) {
          if (event.getAction() == MotionEvent.ACTION_UP) {
              horizontalScrollClipping((ScrollView)view, view.getScrollY());
              return false;  //returning false instead of true
          }
          return false;
      }
  </code></pre>
  
  <p>if i do this, the method inside the onTouch Event fires off, but the flinging for the scrollview does not happen :</p>
  
  <pre><code>@Override
      public boolean onTouch(View view, MotionEvent event) {
          if (event.getAction() == MotionEvent.ACTION_UP) {
              horizontalScrollClipping((ScrollView)view, view.getScrollY());
              return true;  //returning true instead false
          }
          return false;
      }
  </code></pre>
  
  <p>And then finally if i do this, the scrolling on the ScrollView gets completely disabled:</p>
  
  <pre><code>@Override
      public boolean onTouch(View view, MotionEvent event) {
          if (event.getAction() == MotionEvent.ACTION_UP) {
              horizontalScrollClipping((ScrollView)view, view.getScrollY());
              return true;   //return true for both
          }
          return true;
      }
  </code></pre>
  
  <p>here is the horizontalScrollClipping method that is shown in the Touch Event: </p>
  
  <pre><code>private void horizontalScrollClipping(ScrollView scrollView, int scrollY) {
          if (scrollY &gt; (image.getHeight() * 0.60)) {
              scrollView.smoothScrollTo(0, image.getHeight());
          }
      }
  </code></pre>
  
  <p>just wondering if anyone could clue me in on why the default flinging action for the scrollview gets disabled when the OnTouchListener is attached and returning true, and as well why the method i have inside the OnTouch event does not fire off when im returning false. Thanks in advance, any help is much appreciated.</p>
  
  <p>EDIT:
  So instead of checking if the user is done scrolling during the onTouch interface i just calculated if the user was done scrolling in the OnScrollChangedListener like so: </p>
  
  <pre><code>scrollView.getViewTreeObserver().addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() {
              @Override
              public void onScrollChanged() {
                  int scrollY = scrollView.getScrollY();
                  if ((scrollY - lastScrollY) &lt; 5 &amp;&amp; (scrollY - lastScrollY) &gt; 0) {
                      horizontalScrollClipping((ScrollView)scrollView, scrollY);
                  }
                  lastScrollY = scrollY;
              }
          });
  </code></pre>
  
  <p>Where lastScrollY is a variable initialized at the top of my class set to 0.</p>