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