[OpenLayers-Dev] Pb with IE - Events click and mousedown

Sylvain Beorchia sylvain.beorchia at makina-corpus.com
Fri Mar 23 10:55:42 EDT 2007


I saw this :

http://trac.openlayers.org/ticket/555

That was my first problem, but easily solved by changing the onmousedown
event by onclick on the close button.

But there's still the same problem on IE, whene you pan the map with the
mouse (drag). When you release the mouse button, the onclick event is fired.

Sylvain Beorchia.


Sylvain Beorchia a écrit :
> Hi,
> 
> Using events in OpenLayers, i'm setting these settings :
> 
>    map.events.register("click", map, queryMap);
>    map.events.register("mousedown", map, clickOnMap);
> 
> 
> It works fine on firefox. When i click, querymap is called, and not
> clickOnMap. When i start to drag the map clickOnMap is called ok.
> 
> But under IE, queryMap is always called. I mean, when i start to grad
> the map and then release the mouse button, the "click" event is fired.
> 
> a bug ?
> 
> Thanks.
> 
> Sylvain Beorchia.
> Makina Corpus.
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev




More information about the Dev mailing list