[bt-devel] QtWebKit version

Gary Holmlund gary.holmlund at gmail.com
Wed Feb 11 21:21:24 MST 2009


Martin Gruner wrote:
> Hi Eeli,
>
>   
>> With quick testing I found one fault: the hover delay doesn't work
>> reliably. If I move the mouse pointer over KJV text the Mag is updated
>> all the time. I can't easily get orientated to javascript (I have barely
>> used it once) but it looks like the timer is not cleared when the mouse
>> is moved. In the original code it happens like this: Every time when the
>> mouse move event happens the timer is killed and started again from 0.
>> It means that only after the mouse has been stopped for <delay>ms the
>> timer event is sent and handled. Maybe this could be reached by putting
>> some code back to c++ file: killing the timer, timer id, timer event.
>> Only when the timer event is triggered and handled in timerEvent the
>> signal would be emitted to the js code. But I don't know how to handle
>> the node then.
>>     
>
> That can be done well in pure JS. Just store and use the id of the "timeout" 
> in a variable.
>   
Yes, adding  clearTimeout(id) fixes the problem. It is checked in.

Gary



More information about the bt-devel mailing list