when copying properties for touch events, make sure that those properties that might be different for each Touch object are not copied from the touch event
This commit is contained in:
1 parent
7fbd11154b
commit
2e4badb7f3
1 file changed
+7
@@ -219,6 +219,13 @@ ol.pointer.TouchSource.prototype.touchToPointer_ =
|
||||
e.isPrimary = this.isPrimaryTouch_(inTouch);
|
||||
e.pointerType = this.POINTER_TYPE;
|
||||
|
||||
// make sure that the properties that are different for
|
||||
// each `Touch` object are not copied from the BrowserEvent object
|
||||
e.clientX = inTouch.clientX;
|
||||
e.clientY = inTouch.clientY;
|
||||
e.screenX = inTouch.screenX;
|
||||
e.screenY = inTouch.screenY;
|
||||
|
||||
return e;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user