Question: I make a swipe gesture and track it from dispatchTouchEvent in a ScrollView. However, end of the swipe gesture is being detected one frame later. See the last two events below, last two gestures are ACTION\_MOVE and ACTION\_UP. But their touch points are exactly the same, however their eventTimes are different.

action=ACTION\_MOVE, x[0]=734.165, y[0]=1241.4056, historySize=2, eventTime=136103401
action=ACTION\_**MOVE**, x[0]=**747.8897**, y[0]=**1077.508**, historySize=2, eventTime=**136103418**
action=ACTION\_**UP**, x[0]=**747.8897**, y[0]=**1077.508**, historySize=0, eventTime=**136103432**

136103432 - 136103418 = 14. So ACTION\_UP is being retrieved 14 ms later. This is preventing some smooth effects I do right after finger leaves the screen.

You can check the full log from here: <https://zerobin.net/?a71539bf3862abdb#xXjCPrjk/Fi7l+N++9oivQkieFRQ3KA6gwQ0pU2NTYc=>

So, how can I detect ACTION\_UP earlier in dispatchTouchEvent?

Answer: 
In case all elements have similar HTML structure try below to get required output:

```
texts = [node.text.strip().split('\n')[0] for node in soup.find_all(class_="no-wrap text-right circulating-supply")]

```
This might look like an overkill , You could use use regex to extract numbers

```
from bs4 import BeautifulSoup
html = """<td class="no-wrap text-right circulating-supply" data-sort="17210662.0">
            <span data-supply="17210662.0">
            <span data-supply-container="">
            17,210,662
            </span>
            <span class="hidden-xs">
            BTC
            </span>
            </span>
        </td>"""
import re
soup = BeautifulSoup(html,'html.parser')
coin_value =  [re.findall('(\d+)', node.text.replace(',','')) for node in soup.find_all(class_="no-wrap text-right circulating-supply")]
print coin_value

```

prints 

```
[[u'17210662']]

```