Restore map interaction on touch devices
This commit is contained in:
@@ -218,7 +218,8 @@ ol.pointer.TouchSource.prototype.touchToPointer_ =
|
|||||||
*/
|
*/
|
||||||
ol.pointer.TouchSource.prototype.processTouches_ =
|
ol.pointer.TouchSource.prototype.processTouches_ =
|
||||||
function(inEvent, inFunction) {
|
function(inEvent, inFunction) {
|
||||||
var touches = inEvent.getBrowserEvent().changedTouches.slice();
|
var touches = Array.prototype.slice.call(
|
||||||
|
inEvent.getBrowserEvent().changedTouches);
|
||||||
var count = touches.length;
|
var count = touches.length;
|
||||||
function preventDefault() {
|
function preventDefault() {
|
||||||
inEvent.preventDefault();
|
inEvent.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user