Merge pull request #1619 from elemoine/touch-interaction-fix
Fix the touch interactions
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