[OpenLayers-Dev] possible bug in mousemove event handler

Jachym Cepicky jachym.cepicky at gmail.com
Tue Apr 8 11:18:13 EDT 2008


Hi,
I have following problem: I try to implement moving markers with mouse
drag&drop. It is working well, but if the map is panned, then the
mousemove event contains wrong xy element OpenLayers.Pixel. The marker
is moved to other place, than the mousepointer is. Imho it is some kind
of bug.

Small example running at [1]

How to reproduce the bug:
1) drag & drop the marker - it should work
2) now pan with the mouse 
3) try to move the marker again - it will "jump" so site, with the
distance of previous map movement, mouseup is never caught and the
marker is never released.

Is there any other demo, which is working, demonstrating moving markers
with the mouse?

thanks

jachym

[1] http://www.bnhelp.cz/wwwlibs/openlayers/examples/move-marker.html

-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080408/9dcc04d9/attachment.bin


More information about the Dev mailing list