diff --git a/src/ol/pointer/touchsource.js b/src/ol/pointer/touchsource.js index e4113f1c99..f3a6907d1d 100644 --- a/src/ol/pointer/touchsource.js +++ b/src/ol/pointer/touchsource.js @@ -72,12 +72,6 @@ ol.pointer.TouchSource = function(dispatcher, mouseSource) { */ this.CLICK_COUNT_TIMEOUT = 200; - /** - * @const - * @type {string} - */ - this.POINTER_TYPE = 'touch'; - /** * @private * @type {?number} @@ -110,6 +104,13 @@ ol.pointer.TouchSource = function(dispatcher, mouseSource) { goog.inherits(ol.pointer.TouchSource, ol.pointer.EventSource); +/** + * @const + * @type {string} + */ +ol.pointer.TouchSource.POINTER_TYPE = 'touch'; + + /** @inheritDoc */ ol.pointer.TouchSource.prototype.getEvents = function() { return goog.object.getKeys(this.mapping); @@ -207,7 +208,7 @@ ol.pointer.TouchSource.prototype.touchToPointer_ = e.height = inTouch['webkitRadiusY'] || inTouch['radiusY'] || 0; e.pressure = inTouch['webkitForce'] || inTouch['force'] || 0.5; e.isPrimary = this.isPrimaryTouch_(inTouch); - e.pointerType = this.POINTER_TYPE; + e.pointerType = ol.pointer.TouchSource.POINTER_TYPE; // make sure that the properties that are different for // each `Touch` object are not copied from the BrowserEvent object