better type checking

This commit is contained in:
Éric Lemoine
2012-07-09 20:51:28 +02:00
parent 127a2c9606
commit aebfb643ac
2 changed files with 5 additions and 2 deletions

View File

@@ -23,6 +23,9 @@ ol.handler.MouseWheel = function(map, elt) {
var handler = new goog.events.MouseWheelHandler(elt);
this.registerDisposable(handler);
/**
* @param {goog.events.MouseWheelEvent} e
*/
var handleMouseWheel = function(e) {
e.position = goog.style.getRelativePosition(e, elt);
e.type = 'mousewheel';