From d3b5a14a9b71004dca8fac95c69caa6414fa03f6 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 7 Aug 2014 12:25:19 +0200 Subject: [PATCH] Don't use TouchList#item function --- src/ol/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/map.js b/src/ol/map.js index f4760cef4f..8575556fc6 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -604,7 +604,7 @@ ol.Map.prototype.getEventPixel = function(event) { // So we ourselves compute the position of touch events. // See https://github.com/google/closure-library/pull/323 if (goog.isDef(event.changedTouches)) { - var touch = event.changedTouches.item(0); + var touch = event.changedTouches[0]; var viewportPosition = goog.style.getClientPosition(this.viewport_); return [ touch.clientX - viewportPosition.x,