Use window.setTimeout for correct type checking
This commit is contained in:
1 parent
e740e7577a
commit
f3fb88905e
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user