is it possible to integrate all this with the existing code at the end of the touchmove event ? Seems like a lot of the code is duplicated.

As I understand, you want to do a swipe as soon as we have a touchmove instead of waiting for the touchend event. Could it be possible to just call onTouchEnd earlier using the existing code ?