Copy value to start/end since targetTouches object will be updated during the touch event. If the reference is kept the startCoords will end up with the same values as endCoords. swipeDistance always resolved to zero.
Thanks a lot @Dahlgren! Sorry for not replying earlier, i left the project aside for my work, but I'm trying to regain the support. thank you very much for your help!
Cheers
Copy value to start/end since targetTouches object will be updated during the touch event. If the reference is kept the startCoords will end up with the same values as endCoords. swipeDistance always resolved to zero.