consolidated touch handling into one file to fix a bug where pinching would also cause dragging