moved preventDefault for touchmove into single function