title: Scrolling of View happens after the position of scroll by touch
body: <p>I have a customised <code>View</code> in an android application which is put inside a <code>HorizontalScrollView</code> as shown.</p>
  
  <pre><code>    &lt;HorizontalScrollView
              android:id="@+id/feedBackScroller"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:scrollbars="none"&gt;
  
              &lt;com.my.views.OfflineFeedbackView
                  android:id="@+id/feedBackView"
                  android:layout_width="wrap_content"
                  android:layout_height="match_parent"
                  android:layout_marginTop="@dimen/session_rec_page_title_bar_height"
                  android:layout_marginBottom="@dimen/session_rec_page_ctrl_bar_height"/&gt;
  
  &lt;/HorizontalScrollView&gt; 
  </code></pre>
  
  <p>The <code>OfflineFeedbackView</code> shows the pitch track of the audio track that I am playing and I scroll this view by calling <code>scrollTo(newXPos, newYPos)</code> based on the current time of the playback. The problem that I am facing is that if I scroll the screen by touching and then start the playback, the reference of scrolling seems to get changed on my view and the scrolling takes place from the position to which I scrolled to by touch. I went through the API docs and found that the <code>scrollTo(newXPos, newYPos)</code> internally calls <code>onScrollChanged(int l, int t, int oldl, int oldt)</code> where <code>oldl</code> and <code>oldt</code> are the old horizontal and vertical origins respectively. So, what I am interpreting from this is that when I scroll by touching on the screen these origin values get changed. So, I also tried calling <code>onScrollChanged(newX, newY, 0, 0)</code> but this just freezes the screen and there is no scroll. Am I doing something wrong? What can be other better ways to handle this?</p>