Bossa
unread,Sep 27, 2010, 5:35:44 AM9/27/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
Hi,
I'm trying to use mousedown, mousemove and mouseup event to drag the
polygon,
basically the idea is:
1. When the user click on the polygon, var moving = true;
2. When moving = true, the path of the polygon will keep updating and
follow the cursor
3. When the user release the left click, moving will become false.
Quite a simple logic, but it does not always works as expect,
when the cursor is moving slowly (around 50 to 100 pixel per second),
it works well,
but if the user drag it too quick, the mouseup event does not dispatch
and the polygon will stick to the cursor.
I am wondering if there is any solution to this case?
Thanks for helps