title: Recyclerview withy LinearSnapHelper - snap to next item when release finger from the screen
body: <p>I have followed <a href="https://stackoverflow.com/questions/32324926/swipe-one-item-at-a-time-recyclerview/42197223">this Stack Overflow post</a> to create a recyclerview with viewpager behavior. </p>
  
  <p>Works fine but I need to trigger the scroll to next item when user lift the finger of the screen. Right now only snap to next item when it's 50% visible.</p>
  
  <p><strong>UPDATE WITH SOLUTION</strong></p>
  
  <p>The Crysxd response was the key. To detect the snap direction I added this code at the top of the findTargetSnapPosition function:</p>
  
  <pre><code>if (velocityY &lt; 0)
          snapToPrevious = true
  else
          snapToNext = true
  </code></pre>