briancray / tooltipsy

Introducing a jQuery tooltip plugin for control-obsessed designers.
http://tooltipsy.com
MIT License
325 stars 97 forks source link

Hide Tooltip on Tap on Touch devices #29

Closed phalancs closed 10 years ago

phalancs commented 10 years ago

On mobile devices it is only possible to hide the tooltip by tapping outside of it. Since screen estate is a scarce ressource on mobile devices the tooltip should also be hidden by tapping on it.

Any help on this?

phalancs commented 10 years ago

Tried to add this but it does not work.

$(".tipsy").click(function(){ $(".tipsy").remove(); });

briancray commented 10 years ago

What about

$(".tipsy").on('touch', function(){ $(".tipsy").remove(); });

briancray commented 10 years ago

Sorry, the event name may be touchend instead of touch