Adding basic support for mobile

Usability still needs improvement.
This commit is contained in:
ahocevar
2014-03-05 01:06:12 +01:00
committed by tsauerwein
parent d6880039cc
commit bc1489e8a0

View File

@@ -289,6 +289,7 @@ ol.interaction.Draw.prototype.handlePointerUp = function(event) {
var squaredDistance = dx * dx + dy * dy;
var pass = true;
if (squaredDistance <= this.squaredClickTolerance_) {
this.handlePointerMove_(event);
if (goog.isNull(this.finishCoordinate_)) {
this.startDrawing_(event);
} else if (this.mode_ === ol.interaction.DrawMode.POINT ||