calebjacob / tooltipster

A jQuery tooltip plugin
MIT License
2.76k stars 480 forks source link

Extending the duration by focus on tooltip? #736

Closed glupto closed 6 years ago

glupto commented 6 years ago

Hi, I'm using the trigger: 'click'-Option but want to have the tooltip stay open, if the tooltip itself is focussed with mousevoer to extend the duration, if wanted.

Thanks, Peter

louisameline commented 6 years ago

Hi, not sure what you mean. The click trigger works with clicks, not mouseover. Do you use the timer too? You should be able to tweak the way the timer works using the event system, see the doc and/or the source code. If you need something totally custom though, you'll need to completely manipulate the tooltip with the API.

glupto commented 6 years ago

Hi, I start the tooltip with a click and have a normal timer f.e. 10 sec. Then it is closed. But if there is a very long text in the tooltip, it would be good, one could extend the duration to more then 10 sec. Until you have read all. Therefore it could be good to let the tooltip open as long as you need to read it by hovering the tooltip itself and so overriding the closing-timer.

louisameline commented 6 years ago

You'll have to use your own triggers then yes.