Use window.setTimeout to avoid TS conflict with Node's setTimeout

This commit is contained in:
Kevin Schmidt
2018-10-01 15:41:03 -06:00
parent d62dd67942
commit b6846d6b3d
3 changed files with 4 additions and 4 deletions

View File

@@ -912,7 +912,7 @@ function handleDownEvent(event) {
return true;
} else if (this.condition_(event)) {
this.lastDragTime_ = Date.now();
this.downTimeout_ = setTimeout(function() {
this.downTimeout_ = window.setTimeout(function() {
this.handlePointerMove_(new MapBrowserPointerEvent(
MapBrowserEventType.POINTERMOVE, event.map, event.pointerEvent, false, event.frameState));
}.bind(this), this.dragVertexDelay_);