mercadolibre / chico

A collection of easy-to-use UI components.
http://chico.mercadolibre.com
MIT License
343 stars 87 forks source link

Popover: support for touch and click events on displays that supports both #1229

Closed lquintana closed 9 years ago

lquintana commented 9 years ago

Al popover le queda bindeado el evento touchend y deja de recibir el evento click.

No se están soportando ambos eventos porque es exclusivo, o uno y otro.

ch.onpointertap = (ch.support.touch) ? 'touchend' : 'click';

Esto pasa (al menos) en ultrabooks y dispositivos all-in-one que soportan tanto click con el pad y touch.

atma commented 9 years ago

Events module is extracted to tiny.js. Use tiny.pointertap as a unified event name o just "pointertap" when IE8 support is not required.