Ejecta icon indicating copy to clipboard operation
Ejecta copied to clipboard

touchEvent.type is not updated

Open apitaru opened this issue 14 years ago • 1 comments

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

apitaru avatar Oct 26 '12 20:10 apitaru

Fixed. Thank you!

phoboslab avatar Oct 28 '12 11:10 phoboslab