add ol.ENABLE_DRAG_HANDLER and ol.ENABLE_MOUSEWHEEL_HANDLER @defines, and pass a an object to the handlers for sharing states

This commit is contained in:
Éric Lemoine
2012-07-11 17:43:42 +02:00
parent 38f946d944
commit da11a8c34d
5 changed files with 32 additions and 13 deletions
+2 -1
View File
@@ -18,8 +18,9 @@ goog.require('goog.events.MouseWheelHandler');
* @extends {goog.Disposable}
* @param {ol.Map} map The map instance.
* @param {Element} elt The element we listen to mousewheel on.
* @param {Object} states An object for the handlers to share states.
*/
ol.handler.MouseWheel = function(map, elt) {
ol.handler.MouseWheel = function(map, elt, states) {
goog.base(this);
var handler = new goog.events.MouseWheelHandler(elt);