Fix the touch interactions

This fixes a bug introduced by 318fc68159.  Thanks @gjn for reporting the problem.
This commit is contained in:
Éric Lemoine
2014-01-30 09:13:03 +01:00
parent 61ed9a106c
commit 63bcf684f7

View File

@@ -81,7 +81,7 @@ ol.interaction.Touch.isTouchEvent_ = function(mapBrowserEvent) {
ol.interaction.Touch.prototype.updateTrackedTouches_ =
function(mapBrowserEvent) {
if (ol.interaction.Touch.isTouchEvent_(mapBrowserEvent)) {
var event = mapBrowserEvent.browserEvent;
var event = mapBrowserEvent.originalEvent;
if (goog.isDef(event.targetTouches)) {
// W3C touch events
this.targetTouches = event.targetTouches;