add stylus and touch mode to drawing a shape
This commit is contained in:
@@ -528,7 +528,7 @@ class Draw extends PointerInteraction {
|
||||
handleDownEvent(event) {
|
||||
this.shouldHandle_ = !this.freehand_;
|
||||
|
||||
if (this.freehand_) {
|
||||
if (this.freehand_ && ((this.condition_ && this.condition_(event)) || true)) {
|
||||
this.downPx_ = event.pixel;
|
||||
if (!this.finishCoordinate_) {
|
||||
this.startDrawing_(event);
|
||||
@@ -548,7 +548,6 @@ class Draw extends PointerInteraction {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user