Use originalEvent instead of browserEvent
This commit is contained in:
committed by
Andreas Hocevar
parent
c62e76ab67
commit
e48ab95735
@@ -154,21 +154,21 @@ ol.control.MousePosition.prototype.getProjection = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @param {Event} browserEvent Browser event.
|
||||
* @param {Event} event Browser event.
|
||||
* @protected
|
||||
*/
|
||||
ol.control.MousePosition.prototype.handleMouseMove = function(browserEvent) {
|
||||
ol.control.MousePosition.prototype.handleMouseMove = function(event) {
|
||||
var map = this.getMap();
|
||||
this.lastMouseMovePixel_ = map.getEventPixel(browserEvent);
|
||||
this.lastMouseMovePixel_ = map.getEventPixel(event);
|
||||
this.updateHTML_(this.lastMouseMovePixel_);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {Event} browserEvent Browser event.
|
||||
* @param {Event} event Browser event.
|
||||
* @protected
|
||||
*/
|
||||
ol.control.MousePosition.prototype.handleMouseOut = function(browserEvent) {
|
||||
ol.control.MousePosition.prototype.handleMouseOut = function(event) {
|
||||
this.updateHTML_(null);
|
||||
this.lastMouseMovePixel_ = null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user