Make preventTap work for gesture events
Fix track.ddx, ddy, xDirection, and yDirection

Add pointerId to make preventTap work