norcross / gravity-tooltips

Adds a custom field to each form element for tooltips
MIT License
74 stars 20 forks source link

popup speed is too slow #13

Closed alexkirp closed 9 years ago

alexkirp commented 9 years ago

Hi, Firtst of all. Thank you a lot for your work :) Now tooltip popup is delayed by by ~1 sec. Is it possible to make faster to popup / make it instant? If it is possible, where in the code the speed can be changed? Many thanks

norcross commented 9 years ago

there are two filters, gf_tooltips_show_delay and gf_tooltips_hide_delay to modify the show and hide speed. the show speed is currently at 700 milliseconds and the hide is at 300. so something like this

function rkv_update_show_delay( $delay ) {
    return 300;
}

add_filter( 'gf_tooltips_show_delay', 'rkv_update_show_delay');
alexkirp commented 9 years ago

Thank you for your quick help.

From: Norcross notifications@github.com Reply-To: norcross/gravity-tooltips <reply+006b9374fb490a819305536ebe1db14d31a3016f9938b1cb92cf00000001109048ea9 2a169ce03002db9@reply.github.com> Date: Saturday, 29 November 2014 1:30 am To: norcross/gravity-tooltips gravity-tooltips@noreply.github.com Cc: Alexandre Kirpitchenko s.barba.roja@gmail.com Subject: Re: [gravity-tooltips] popup speed is too slow (#13)

there are two filters, gf_tooltips_show_delay and gf_tooltips_hide_delay to modify the show and hide speed. the show speed is currently at 700 milliseconds and the hide is at 300. so something like this

function rkv_update_show_delay( $delay ) { return 300;}add_filter( 'gf_tooltips_show_delay', 'rkv_update_show_delay'); ‹ Reply to this email directly or view it on GitHub https://github.com/norcross/gravity-tooltips/issues/13#issuecomment-6489932 6 .