Good point. So, I went back to using an event handler from a previous 
version which does one or the other:

ExtInfoWindow.prototype.cancelEvent_ = function(e) {

 if( (navigator.userAgent.toLowerCase().indexOf('msie') != -1  && 
document.all) ||
                  navigator.userAgent.indexOf('Opera') > -1)  {
    window.event.cancelBubble = true;
    window.event.returnValue = false;
  } else {
    e.stopPropagation();
  }
   return false;;
}

And I removed the click handling hack. Also, Re: my previous post, instead 
of trying to cancel mouse scroll events, now, whenever the user mouses over 
the infowindow, I just turn zoom by scroll wheel off until they mouse out.

Updated code is here:

http://online.northcarolina.edu/system/themes/asp/js/extinfowindow.js

- Doug


On Wednesday, May 1, 2013 2:09:10 PM UTC-4, chris marx wrote:
>
> In chrome, it seems evt.stopPropagation()  is all that is necessary for 
> the click event to not affect the map,  which makes sense since that's what 
> stopPropagation is for.   did you discover a  specific need in chrome  for 
> cancelBubble or  returnValue?
>
> On Wednesday, May 1, 2013 1:01:37 AM UTC-4, Douglass Davis wrote:
>>
>> It still has a problem in chrome where links in the infowindow don't 
>> work.  The user clicks on them and nothing happens.  However, if I don't 
>> "steal" the click event and try to stop it, then the click will go right 
>> through to the map.  And the click on the map closes the infowindow.  Not 
>> sure how to fix this one.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to