Fix the touch interactions
This fixes a bug introduced by https://github.com/openlayers/ol3/commit/318fc6815901380bdc7c9d1921cb5a9cc1e6e2ff. Thanks @gjn for reporting the problem.
This commit is contained in:
@@ -81,7 +81,7 @@ ol.interaction.Touch.isTouchEvent_ = function(mapBrowserEvent) {
|
|||||||
ol.interaction.Touch.prototype.updateTrackedTouches_ =
|
ol.interaction.Touch.prototype.updateTrackedTouches_ =
|
||||||
function(mapBrowserEvent) {
|
function(mapBrowserEvent) {
|
||||||
if (ol.interaction.Touch.isTouchEvent_(mapBrowserEvent)) {
|
if (ol.interaction.Touch.isTouchEvent_(mapBrowserEvent)) {
|
||||||
var event = mapBrowserEvent.browserEvent;
|
var event = mapBrowserEvent.originalEvent;
|
||||||
if (goog.isDef(event.targetTouches)) {
|
if (goog.isDef(event.targetTouches)) {
|
||||||
// W3C touch events
|
// W3C touch events
|
||||||
this.targetTouches = event.targetTouches;
|
this.targetTouches = event.targetTouches;
|
||||||
|
|||||||
Reference in New Issue
Block a user