|
From: xavi t. <th...@ya...> - 2000-11-20 12:42:27
|
Hi guys,
Dows anyone knows why Netscape6 trigger each mouse
event more than one time, I mean: if you do a click
over a layer with a EventListener the DynLayer will
receive two or three events of the same type.
I have been testing it, and I can't resolve the
problem. I have been looking inside the DynAPI library
(dynlayer.js and events.js) but I can't find any bug.
The only way I found to avoid this 'bug' is doing
something like this inside the onmousexxxx function:
(the var way is initially '1')
myEventListener.onmousedown = function (e) {
me = e.getTarget()
if (me.way==1) {
me.way = 0;
/* my code */
// after 10 ms we will ready to listen
another event of this kind
setTimeout('me.way=1', 10)
} else {
/*do nothing cause this event has been done*/
}
}
Thanks in advance,
Javier Tejero
Barcelona
(Catalonia)
SPAIN
__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/
|