jquery-simulate icon indicating copy to clipboard operation
jquery-simulate copied to clipboard

Touch events are not supported

Open ovidiuch opened this issue 11 years ago • 4 comments

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

ovidiuch avatar Jan 21 '14 15:01 ovidiuch

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.

scottgonzalez avatar Jan 21 '14 16:01 scottgonzalez

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

On Tuesday, January 21, 2014, Scott González [email protected] 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ş

ovidiuch avatar Jan 21 '14 17:01 ovidiuch

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

scottgonzalez avatar Jan 21 '14 17:01 scottgonzalez

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..

ovidiuch avatar Jan 22 '14 09:01 ovidiuch