title: swiping items on listview, with small vertical margin
body: <p>So I have a <code>ListView</code> on which I attach :</p>
  
  <pre><code>mList.setOnTouchListener(gestureListener);
  </code></pre>
  
  <p>What this gesture listener does is basically measure deltaX (horizontal swipe) and detects if it is higher than some value, then it knows that swipe has occured.</p>
  
  <p>Then I have :</p>
  
  <pre><code>mList.setOnItemClickListener(new AdapterView.OnItemClickListener() { ... } 
  </code></pre>
  
  <p>Which checks with gesture object if swipe has happened, if yes its a swipe, otherwise its a click.</p>
  
  <p>All this works fine.</p>
  
  <p><strong>My issue is :</strong> </p>
  
  <p>When I swipe elements with my thumb, sometimes I make a list scroll just a bit vertically.
  The horizontal swipe is detected, but the problem is that <code>OnItemClickListener</code> doesnt fire, which is where I would launch some actions on the item depending if it is a swipe or not.</p>
  
  <p>So the problem is that the vertical scroll mechanism of listview, makes something that makes onItemClicked event not to fire.</p>
  
  <p><img src="https://i.stack.imgur.com/4NsZR.png" alt="enter image description here"></p>
  
  <p>the list on the left works fine, no vertical scrolling appears.
  the list on the right, I swipe the item but slightly to the bottom as well (still within the bounds of this item) so that the list moves just a bit. And the <code>OnItemClicked</code> does not fire.</p>
  
  <p>How can I add a small margin for vertical scroll, so that the scroll appears but the onItemClicked is still fired?</p>
  
  <p>Thanks</p>