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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user