You can definitely do this, but if it were me, I would try a less complicated approach. First you need to admit that no specific approach will give 100% accurate results - they will be speculations, but hopefully very likely. With that said, I would explore simple capture points for basic touch events. You can use these data points and pull the x / y axis when touching the start / end:
touchStart: , , .
touchEnd: , .
- , , / . , , , , , . , touchStart X , touchEnd X, , . - , touchStart X , touchEnd X, , . . :


. !
http://www.javascriptkit.com/javatutors/touchevents.shtml