jquery / jquery-simulate

jQuery Event Unit Testing Helpers
Other
173 stars 114 forks source link

Touch events are not supported #19

Open ovidiuch opened 10 years ago

ovidiuch commented 10 years ago

Any prospects or debate on this? Would be very useful to have touchstart, touchmove, touchend etc.

scottgonzalez commented 10 years ago

Touch Events are so finicky that I'd rather require something like WebDriver for testing touch. Also, we don't ever want to code specifically to Touch Events in jQuery projects, we want to abstract to Pointer Events.

ovidiuch commented 10 years ago

Do you have an example of a Pointer Events abstraction? Thanks

On Tuesday, January 21, 2014, Scott González notifications@github.com wrote:

Touch Events are so finicky that I'd rather require something like WebDriver for testing touch. Also, we don't ever want to code specifically to Touch Events in jQuery projects, we want to abstract to Pointer Events.

— Reply to this email directly or view it on GitHubhttps://github.com/jquery/jquery-simulate/issues/19#issuecomment-32901484 .

Best regards, Ovidiu Cherecheş

scottgonzalez commented 10 years ago

We're working on one in https://github.com/jquery/jquery-pointer-events which builds on top of Polymer.

ovidiuch commented 10 years ago

Nice, I'll bookmark that project. Polymer seems pretty promising also, but for the time being, except for using a WebDriver, I have no way of testing touch-enabled components. Even if I had an abstraction for unifying the logic behind it, the input to test shouldn't be a part of my abstraction but something that the browser provides, like a touchmove event..