yui/yui3 — pull request #295 by davglass (2012-10-06 03:40:17+00:00)
Title: Better touch enabled

This fixes `event`, `event-gesture` and `Y.UA`, found in:
http://yuilibrary.com/projects/yui3/ticket/2532844

This changes the navigator sniff from `('msPointerEnabled' in navigator)` to:

`(('msMaxTouchPoints' in navigator) && (navigator.msMaxTouchPoints));`

It seems that `msPointerEnabled` is true even if you are not on a device that supports touch, the proper way to test for this is to see if `navigator.msMaxTouchPoints` is greater than `0`. On a touch device this will likely be `5` for five finger touches.

Source: http://blog.stevelydford.com/2012/03/detecting-touch-hardware-in-ie-10/