Use window.setTimeout for correct type checking

This commit is contained in:
Florent gravin
2018-09-18 14:58:20 +02:00
parent e740e7577a
commit f3fb88905e

View File

@@ -127,7 +127,7 @@ class MapBrowserEventHandler extends EventTarget {
this.dispatchEvent(newEvent);
} else {
// click
this.clickTimeoutId_ = setTimeout(function() {
this.clickTimeoutId_ = window.setTimeout(function() {
this.clickTimeoutId_ = 0;
const newEvent = new MapBrowserPointerEvent(
MapBrowserEventType.SINGLECLICK, this.map_, pointerEvent);