Julien Danjou <julien <at> danjou.info> writes:

> You can set a variable in mouse::enter, reset it in mouse::leave.
> And just run a timer to check that variable.
> 
> Sounds good?

Yes, thanks for the hint, five minute job after that. And then I found
tooltip module, but I think I needed this anyhow.

I made a timer, and I start in on mouse::enter, as well as setting a
variable. When timeout expires, it calls my function, which checks the
variable, and also stops the timer. Also, mouse::leave will clear the
variable and stop the timer.

Now, I don't re-new the timer object, but just start and stop it as
needed. It seems that between restarts, the timer remembers how much it
had counted so far. It this intentional, and should I thus re-new the
timer object every time?




-- 
To unsubscribe, send mail to [email protected].

Reply via email to