Use setTimeout with any return type
This commit is contained in:
@@ -206,7 +206,7 @@ class Draw extends PointerInteraction {
|
||||
this.downPx_ = null;
|
||||
|
||||
/**
|
||||
* @type {number|undefined}
|
||||
* @type {any}
|
||||
* @private
|
||||
*/
|
||||
this.downTimeout_;
|
||||
@@ -912,7 +912,7 @@ function handleDownEvent(event) {
|
||||
return true;
|
||||
} else if (this.condition_(event)) {
|
||||
this.lastDragTime_ = Date.now();
|
||||
this.downTimeout_ = window.setTimeout(function() {
|
||||
this.downTimeout_ = setTimeout(function() {
|
||||
this.handlePointerMove_(new MapBrowserPointerEvent(
|
||||
MapBrowserEventType.POINTERMOVE, event.map, event.pointerEvent, false, event.frameState));
|
||||
}.bind(this), this.dragVertexDelay_);
|
||||
|
||||
Reference in New Issue
Block a user