I think I've got it working now, have another play :) -- Luke
On Fri, Aug 13, 2010 at 3:03 PM, William <william.g...@gmail.com> wrote: > It still didn't drag for me in IE8, and it seems because the events > are being captured by the marker elements, not the window. > > I could make it drag by changing the following from "window" to > "this.markerContent_" but it doesn't really work on images because it > starts to drag then something stops it and the cursor goes off the > image, so you have to move the cursor back over the Eiffel tower image > to continue dragging: > > ORIGINAL > RichMarker.prototype.addDraggingListeners_ = function() { > var that = this; > this.draggingListeners_ = [ > google.maps.event.addDomListener(window, 'mousemove', function(e) > { > that.drag(e); > }, true), > google.maps.event.addDomListener(window, 'mouseup', function() { > that.stopDrag(); > }, true) > ]; > }; > > CHANGED > RichMarker.prototype.addDraggingListeners_ = function() { > var that = this; > this.draggingListeners_ = [ > google.maps.event.addDomListener(this.markerContent_, 'mousemove', > function(e) { > that.drag(e); > }, true), > google.maps.event.addDomListener(this.markerContent_, 'mouseup', > function() { > that.stopDrag(); > }, true) > ]; > }; > > > ... > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > google-maps-js-api...@googlegroups.com. > To unsubscribe from this group, send email to > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.