mbostock/d3 — pull request #889 by mnmly (2012-11-12 05:37:59+00:00)
Title: More explicit touch event checking.

### `isTouchEvent` flag variable is added.

As Chrome (18.0.1025308) on Nexus 7 (Android 4.1.2) is returning `0` as touch.identifier, it does not suffice to check by `touchId ? x : y`.

Rather, it should explicitly check if the event is touch or not by `typeof touchId !== 'undefined'`.

It's just weird that Chrome is assigning simple integer, like `0`, `1`, `2`...