iidioter / earth-api-samples

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

No mousemove events when dragging earth #465

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. set ge.getOptions().setMouseNavigationEnabled(1);
2. attach an event handler to the mousemove event
3. put document.title = event.getClientX(); in the handler to show changing
mouse x coordinates in the title bar.

When you drag the mouse holding down the left mouse button the view is
repositioned but there are no mousemove events fired. If I set
ge.getOptions().setMouseNavigationEnabled(0); then I do get the mousemove
events but of course I can not reposition the view.

I am implementing a tool where I want to be able to both drag the earth and
perform hittest at the mouse cursor. This is not possible because the
mousemove event does not fire which means the current cursor location
remains unknown until I release the left mouse button.

Plugin version : 5.2.1.1183

Firefox 3.6.3

Original issue reported on code.google.com by vandint...@gmail.com on 1 Jun 2010 at 8:33

GoogleCodeExporter commented 9 years ago
Correction: mousemove events don't occur when
ge.getOptions().setMouseNavigationEnabled(0); is set either. Not sure what I 
observed
earlier.

Original comment by vandint...@gmail.com on 1 Jun 2010 at 8:42

GoogleCodeExporter commented 9 years ago
Issue 540 has been merged into this issue.

Original comment by jli...@google.com on 13 Oct 2010 at 8:44

GoogleCodeExporter commented 9 years ago

Original comment by bcke...@google.com on 25 Feb 2011 at 12:28

GoogleCodeExporter commented 9 years ago
Without mousemove events, it seems impossible to distinguish between a 
click-and-drag and a simple click. Can anyone suggest a workaround?

Original comment by t...@leach.it on 22 Aug 2011 at 2:08

GoogleCodeExporter commented 9 years ago
I don't know if this has been answered - I used the onviewchangeend event to 
signal the globe having stopped being moved and that it was a globe drag event. 
 I also capture the mouse down and if it is a placemark I preventdefaults in 
the mousemove event.

Original comment by glyphico...@gmail.com on 5 Jun 2013 at 11:21