stravid/slotcars — pull request #2 by MathiasPaumgarten (2012-02-21 11:02:15+00:00)
Title: Pull Request: Feature/click event normalization

This feature adds a simple normalization of touchstart, touchend, mousedown and mouseup events. Certain events are mapped to one event:

* `touchstart` and `mousedown` are mapped to `touchMouseDown`.
* `touchend` and `mouseup` are mapped to `touchMouseUp`.

when `helpers/event_normalization` is required:

```CoffeeScript
($ document).bind 'touchMouseDown', (event) ->
console.log event.pageX, event.pageY
```

Same works for touchMouseUp. Allthough touchMouseUp has attributes like `event.pageX` and `event.pageY` they are set to `null`