From 18c2888987942cc4fa98ba9ec26bd8bc675f174a Mon Sep 17 00:00:00 2001 From: tsauerwein Date: Wed, 12 Mar 2014 14:14:42 +0100 Subject: [PATCH] Remove not used property TouchSource.firstXY --- src/ol/pointer/touchsource.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ol/pointer/touchsource.js b/src/ol/pointer/touchsource.js index e6de272604..4e4f35997e 100644 --- a/src/ol/pointer/touchsource.js +++ b/src/ol/pointer/touchsource.js @@ -126,7 +126,6 @@ ol.pointer.TouchSource.prototype.setPrimaryTouch_ = function(inTouch) { if (this.pointerMap.getCount() === 0 || (this.pointerMap.getCount() === 1 && this.pointerMap.containsKey(1))) { this.firstTouchId_ = inTouch.identifier; - this.firstXY = {X: inTouch.clientX, Y: inTouch.clientY}; this.cancelResetClickCount_(); } }; @@ -139,7 +138,6 @@ ol.pointer.TouchSource.prototype.setPrimaryTouch_ = function(inTouch) { ol.pointer.TouchSource.prototype.removePrimaryPointer_ = function(inPointer) { if (inPointer.isPrimary) { this.firstTouchId_ = null; - this.firstXY = null; this.resetClickCount_(); } }; @@ -219,7 +217,6 @@ ol.pointer.TouchSource.prototype.processTouches_ = // forward touch preventDefaults goog.array.forEach(pointers, function(p) { p.preventDefault = function() { - this.firstXY = null; inEvent.preventDefault(); }; }, this);