Temporarily removing Drag sequence.
This commit is contained in:
@@ -3,7 +3,6 @@ goog.require('ol.bounds');
|
||||
goog.require('ol.control.Control');
|
||||
goog.require('ol.control.Navigation');
|
||||
goog.require('ol.event');
|
||||
goog.require('ol.event.Drag');
|
||||
goog.require('ol.event.Events');
|
||||
goog.require('ol.event.Sequence');
|
||||
goog.require("ol.map");
|
||||
|
||||
@@ -4,7 +4,6 @@ goog.require('ol.Loc');
|
||||
goog.require('ol.Projection');
|
||||
goog.require('ol.event');
|
||||
goog.require('ol.event.Events');
|
||||
goog.require('ol.event.Drag');
|
||||
goog.require('ol.control.Control');
|
||||
|
||||
|
||||
@@ -79,9 +78,7 @@ ol.Map = function() {
|
||||
* @private
|
||||
* @type {ol.event.Events}
|
||||
*/
|
||||
this.events_ = new ol.event.Events(
|
||||
this, undefined, true, [new ol.event.Drag()]
|
||||
);
|
||||
this.events_ = new ol.event.Events(this);
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -89,6 +86,8 @@ ol.Map = function() {
|
||||
*/
|
||||
this.container_ = null;
|
||||
|
||||
this.setControls(ol.Map.DEFAULT_CONTROLS);
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -115,7 +114,7 @@ ol.Map.DEFAULT_TILE_SIZE = 256;
|
||||
@const
|
||||
@type {Array.<string>}
|
||||
*/
|
||||
ol.Map.DEFAULT_CONTROLS = ["Navigation", "Zoom"];
|
||||
ol.Map.DEFAULT_CONTROLS = ["Navigation"];
|
||||
|
||||
/**
|
||||
* @return {ol.Loc} Location.
|
||||
|
||||
@@ -6,7 +6,7 @@ goog.require('goog.events.EventType');
|
||||
goog.require('goog.events.EventTarget');
|
||||
goog.require('goog.events.Listener');
|
||||
goog.require('goog.style');
|
||||
|
||||
goog.require('goog.fx.Dragger');
|
||||
|
||||
/**
|
||||
* Determine whether event was caused by a single touch
|
||||
|
||||
@@ -125,9 +125,7 @@ describe("ol.event.Events", function() {
|
||||
|
||||
it("can map browser events to sequences", function() {
|
||||
var element = document.createElement("div"),
|
||||
events = new ol.event.Events(
|
||||
"foo", element, false, [new ol.event.Drag()]
|
||||
),
|
||||
events = new ol.event.Events("foo", element),
|
||||
mockEvt;
|
||||
|
||||
// mock dom object
|
||||
|
||||
Reference in New Issue
Block a user