Problems with 'touch' & 'pointer' #948

publickeating opened this Issue Mar 7, 2013 · 0 comments


None yet
1 participant

publickeating commented Mar 7, 2013

There is a whole-sale problem with touch handling in the framework. SC.platform.touch as indication of a touch device is incorrect and after reading a lot of discussion about how Modernizr detects touch, it seems that it will never be correct. The touch events are a webkit only addition which differ from Microsoft's implementation, and just because a browser supports the events, doesn't mean that the device is touch capable. Likewise, a touch capable device may have a browser that does not support touch events and furthermore a touch capable device may also have other inputs that can be enabled or disabled during a single session (think plugging a mouse in to a tablet, then unplugging it and going out the door).

I'm still getting my head around it, but it seems that we need to add some clarity into the code about how to support mouse, touch and pointer events. A quick search reveals that SC.platform.touch is used in a number of places in the framework so I just wanted to flag this here for reference until I have more time to figure out what to do.

• One thing for sure: need to add support for MS pointer events

Relevant information:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment