From 4a8ef6a229da039f707bc861dc4cb089a9daf4d6 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sun, 23 Mar 2014 18:41:44 +0100 Subject: [PATCH] Use dot property access in ol.pointer.TouchSource --- src/ol/pointer/touchsource.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/pointer/touchsource.js b/src/ol/pointer/touchsource.js index f621ef7207..db7351855c 100644 --- a/src/ol/pointer/touchsource.js +++ b/src/ol/pointer/touchsource.js @@ -193,9 +193,9 @@ ol.pointer.TouchSource.prototype.touchToPointer_ = e.detail = this.clickCount_; e.button = 0; e.buttons = 1; - e.width = inTouch['webkitRadiusX'] || inTouch['radiusX'] || 0; - e.height = inTouch['webkitRadiusY'] || inTouch['radiusY'] || 0; - e.pressure = inTouch['webkitForce'] || inTouch['force'] || 0.5; + e.width = inTouch.webkitRadiusX || inTouch.radiusX || 0; + e.height = inTouch.webkitRadiusY || inTouch.radiusY || 0; + e.pressure = inTouch.webkitForce || inTouch.force || 0.5; e.isPrimary = this.isPrimaryTouch_(inTouch); e.pointerType = ol.pointer.TouchSource.POINTER_TYPE;