Fix touch events.

Because the events are captured with jQuery, the `clientX` and `clientY` for the first finger are available under `e.originalEvent.touches[0]` instead of `e.touches[0]`. To provide maximum flexibility, both cases are checked (`e.touches[0]` and `e.originalEvent.touches[0]`).