jqueryipadtooltiptouchstart

Closing jQuery Tools tooltip on iphone/ipad with touchstart


I have the following code being run if an iphone/ipad/ipod is detected:

$('.tooltip-trigger').tooltip({offset: [20, -110],relative:true, events: { def: 'touchstart,blur'} });

I have got the initial touch working instead of on hover by declaring def:'touchstart', however the boxes do not close and calling another touchstart like def: 'touchstart,touchstart' does not work. Neither does def: 'toggle' which seems logical to me.

Any ideas?


Solution

  • I resolved this by placing a close button on the tooltip for smartphones and tablets only