Fix weird IE7 bug with mouseup events

In IE7, handling some mouseup events are causing the native event
underlying goog.events.BrowserEvent to be invalidated, and it would
error out with a "Member not found" message. By passing the Closure
event rather than the native event around, we avoid this case.
This commit is contained in:
Austin Hyde
2013-11-22 15:01:40 -05:00
parent 0e05cd2263
commit f7ec082411

View File

@@ -531,7 +531,7 @@ ol.Map.prototype.freezeRendering = function() {
/**
* Returns the geographical coordinate for a browser event.
* @param {Event} event Event.
* @param {Event|goog.events.BrowserEvent} event Event.
* @return {ol.Coordinate} Coordinate.
* @todo stability experimental
*/
@@ -542,7 +542,7 @@ ol.Map.prototype.getEventCoordinate = function(event) {
/**
* Returns the map pixel position for a browser event.
* @param {Event} event Event.
* @param {Event|goog.events.BrowserEvent} event Event.
* @return {ol.Pixel} Pixel.
* @todo stability experimental
*/