-
Mike Bostock authored
Normally d3.mouse(this) is equivalent to d3.touches(this)[0] because the clientX and clientY properties of the event and the first touch are the same. However, on touchend the touches list is empty, and the clientX and clientY are 0! So instead it seems safer to use the position of the first changed touch for the default location of a touch event.
8dc4ed81