You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I wonder what version of PhantomJS did you use? When I try to use this in 2.1.1, everything works fine until initTouchEvent. Turns out that event.initTouchEvent is undefined.
The text was updated successfully, but these errors were encountered:
Unfortunately, couldn't find a way to make it work in 2.1.1. Without initTouchEvent it seems impossible to add touches to an event (and property touches is not writeable). What I ended up with is constructing a generic event (document.createEvent('Event')) and manually setting all the properties I expect in the touch event.
So, no PR, sorry, but perhaps this information might help someone.
Hi, I wonder what version of PhantomJS did you use? When I try to use this in 2.1.1, everything works fine until
initTouchEvent
. Turns out thatevent.initTouchEvent
isundefined
.The text was updated successfully, but these errors were encountered: