Merge pull request #2074 from bartvde/touch
Restore map interaction on touch devices
This commit is contained in:
commit
3384ba07e3
1 file changed
+2
-1
@@ -218,7 +218,8 @@ ol.pointer.TouchSource.prototype.touchToPointer_ =
|
||||
*/
|
||||
ol.pointer.TouchSource.prototype.processTouches_ =
|
||||
function(inEvent, inFunction) {
|
||||
var touches = inEvent.getBrowserEvent().changedTouches.slice();
|
||||
var touches = Array.prototype.slice.call(
|
||||
inEvent.getBrowserEvent().changedTouches);
|
||||
var count = touches.length;
|
||||
function preventDefault() {
|
||||
inEvent.preventDefault();
|
||||
|
||||
Reference in new issue
Block a user