Ejecta
Ejecta copied to clipboard
touchEvent.type is not updated
Looking at the ejecta.js file, I've noticed that the touchEvent object includes a 'type' variable (as it should), but this variable is not updated when the event is published. Therefore, polling this var will always return a 'touchstart' event regardless of the real event type.
To fix, you can add the following in publishTouchEvent() :
touchEvent.type = type;
(btw - I'm aware that you are also sending the touch type separately, but would be great if it could also update as shown above, towards compatibility with typical web-browser implementations).
Thanks, and great job on the lib!!! @apitaru
Fixed. Thank you!