earthoutreach / earth-api-utility-library

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

removeEventListener not called for dblclick at end of drawLineString #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. call drawLineString
2. draw anything, double click to end
3. double click to zoom in

What is the expected output? What do you see instead?

Double click events should fall through to default Earth handling, instead
they continue to be caught by finishListener (continue to hit breakpoint in
Firebug. It doesn't look like abortAndEndFn gets called in this case.

Original issue reported on code.google.com by vormo...@gmail.com on 7 Aug 2009 at 12:16

GoogleCodeExporter commented 8 years ago
Proposed fix: 

linepoly.js line 163: 
cut "google.earth.removeEventListener(me.pluginInstance.getWindow(),'dblclick',
finishListener);"

linepoly.js line 107: 
paste the above line

Original comment by vormo...@gmail.com on 7 Aug 2009 at 5:39

GoogleCodeExporter commented 8 years ago
Thanks, fix submitted to trunk.

Original comment by api.roman.public@gmail.com on 8 Aug 2009 at 1:56