Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Tooltip problem

#241

Hi

First thanks for your great work!!

I try to make a collection of webdesign rules and I used rightjs for my tooltip. Now when I move the mouse fast for a while the tooltip suddenly disappear:
http://www.webgarten.ch/webdesign/

I am not sure if it is becouse of the way I am including it. My programming skills are not so good. I just add it on the a tag that way:

Is it wrong the way I have done it?

Thanks - Oliver

Reported by oliver.schmid (at webgarten) · May 10th, 2010 @ 02:47 PM

State: resolved
Milestone: none
Assigned to: RightJS Admin RightJS Admin

Activity

  1. MadRabbit
    MadRabbit
    • State changed from new to invalid

    Hi Oliver,

    The problem is that with those mousemove event you cause lots of rapid page transformations. For example the $eval function inserts a SCRIPT tag and any call of any visual effect makes the script to insert a dummy hidden element on the page to calculate the final styles.

    When you do lots of things like that quickly, at some point the browser looses the focus over the 'A' element layer, which consequentially makes the script to hide the tooltip.

    So I suggest you rework your script in some other way so it wasn't so harsh on the page structure. Maybe use the native eval function and some lockers that will prevent the repeat calls until your fx is working.

    May 10th, 2010 @ 05:42 PM

  2. oliver.schmid (at webgarten)
    oliver.schmid (at webgarten)

    Hi Mad

    Thanks for your reply :-)

    But I think it is not that. The problem already happen before I add this event. I removed it now on this site and the problem is still there:
    https://www.webgarten.ch

    It is really strange, move the mouse and the tooltip suddenly disappear. I tried Firefox Mac and PC and also IE 7 PC.

    Regards - Oli

    May 10th, 2010 @ 05:51 PM

  3. MadRabbit
    MadRabbit
    • State changed from invalid to resolved

    Hey Oliver,

    Seem like I was wrong 8)

    The problem was with the tooltip itself, it happened that when you move the cursor too fast, the script couldn't reposition the tooltip element itself quickly enough and the cursor was on the tooltip which triggered the mouseout event and therefore the hiding.

    I've fixed the problem, please try one of the attached files, that should help.

    And thanks for kicking me! 8)

    -- Cheers,
    Nik

    May 10th, 2010 @ 07:17 PM

  4. oliver.schmid (at webgarten)
    oliver.schmid (at webgarten)

    Cool it works!!

    Thank you very much.

    Cheers - Oli

    May 10th, 2010 @ 07:36 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.