[OpenLayers-Trac] [OpenLayers] #741: mousedown event handling regression from OL 2.3
OpenLayers
trac at openlayers.org
Wed Jun 6 14:57:11 EDT 2007
#741: mousedown event handling regression from OL 2.3
------------------------+---------------------------------------------------
Reporter: openlayers | Owner:
Type: bug | Status: new
Priority: minor | Milestone:
Component: Control | Version: 2.4
Keywords: |
------------------------+---------------------------------------------------
Les Szklanny wrote:
{{{
> Hi all,
>
> I discovered that the 'mousedown' event registered on the map object
> will not fire in OpenLayers 2.4.
> It works as expected in OL 2.3.
>
> I added the following line in the kamap.html example:
>
> map.events.register('mousedown', this, function() {
alert('mousedown')});
>
> See demo below:
>
> OpenLayers 2.3
> http://www.slippymap.com/kamap23.html
>
> OpenLayers 2.4
> http://www.slippymap.com/kamap24.html
>
> I used IE 6, FF 2, Opera 9.21 and Safari 1.3.2 for testing.
>
}}}
Christopher Schmidt wrote:
Actually, I know how to workaround this: use the MouseDefaults control
instead of the Navigation control. I even know why it happens. It still
needs a ticket.
You can obtain the correct behavior by changing:
{{{
var map = new OpenLayers.Map('map');
to:
var map = new OpenLayers.Map('map', {controls:[
new OpenLayers.Control.MouseDefaults(),
new OpenLayers.Control.ArgParser(),
new OpenLayers.Control.PanZoom()
]}
);
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/741>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list