Temporarily removing Drag sequence.

This commit is contained in:
ahocevar
2012-06-21 14:14:36 +02:00
parent 6213e07f96
commit 5b747cf7fd
4 changed files with 6 additions and 10 deletions

View File

@@ -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");

View File

@@ -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.

View File

@@ -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

View File

@@ -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