Adding basic support for mobile
Usability still needs improvement.
This commit is contained in:
@@ -289,6 +289,7 @@ ol.interaction.Draw.prototype.handlePointerUp = function(event) {
|
|||||||
var squaredDistance = dx * dx + dy * dy;
|
var squaredDistance = dx * dx + dy * dy;
|
||||||
var pass = true;
|
var pass = true;
|
||||||
if (squaredDistance <= this.squaredClickTolerance_) {
|
if (squaredDistance <= this.squaredClickTolerance_) {
|
||||||
|
this.handlePointerMove_(event);
|
||||||
if (goog.isNull(this.finishCoordinate_)) {
|
if (goog.isNull(this.finishCoordinate_)) {
|
||||||
this.startDrawing_(event);
|
this.startDrawing_(event);
|
||||||
} else if (this.mode_ === ol.interaction.DrawMode.POINT ||
|
} else if (this.mode_ === ol.interaction.DrawMode.POINT ||
|
||||||
|
|||||||
Reference in New Issue
Block a user