Fixes tap gesture getting sent to content view. Also improves the calculation and application of touch dragging.