iron-test-helpers icon indicating copy to clipboard operation
iron-test-helpers copied to clipboard

Add support for MockInteractions on touch-only devices

Open dfreedm opened this issue 9 years ago • 3 comments

MockInteractions will fail to create any gestures on an iOS or Android device because Polymer Gestures do not listen for mouse events on those platforms.

MockInteractions should create touchevents in those instances.

dfreedm avatar Jan 29 '16 23:01 dfreedm

@cdata Don't know if/when I can get around to this. Maybe a good first bug as well?

dfreedm avatar Jan 29 '16 23:01 dfreedm

New in Chrome 48 are TouchEvent constructors: https://w3c.github.io/touch-events/#touchevent-interface, https://output.jsbin.com/lohuwa

dfreedm avatar Jan 29 '16 23:01 dfreedm

Might have to fallback in other browsers to something like https://gist.github.com/basecss/8666646

dfreedm avatar Jan 29 '16 23:01 dfreedm