brunorichart / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

Double click on label causes double click event on the map #84

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create the map with enableDoubleClickZoom().
2. Create a LabeledMarker with a text label.
3. Add a dblclick event handler to the marker that zooms to a predetermined
zoom level (eg 8).
4. Add the marker to the map.

What is the expected output? What do you see instead?
Expected result: Double clicking on the marker or the label should zoom to
the desired zoom level.
Actual result: Double clicking on the label zooms to one more than the
required zoom level as the double click event is also fired on the map. The
label should stop the double click event from bubbling up to the map.

What version of the product are you using? On what operating system?
2.139 on Windows XP.

Please provide any additional information below.
Sample code to stop event bubbling from label div to map div.
        if (!e) var e = window.event;
            e.cancelBubble = true;
        if (e.stopPropagation) e.stopPropagation();

Original issue reported on code.google.com by girgis.m...@gmail.com on 27 Jan 2009 at 12:16

GoogleCodeExporter commented 8 years ago
Hey there- Have you tried out the suggested sample code? If so, can you attach 
a diff 
to this issue, and we can patch it in?

Original comment by pamela.fox on 28 Jan 2009 at 11:39