Use window.setTimeout for correct type checking
This commit is contained in:
@@ -127,7 +127,7 @@ class MapBrowserEventHandler extends EventTarget {
|
|||||||
this.dispatchEvent(newEvent);
|
this.dispatchEvent(newEvent);
|
||||||
} else {
|
} else {
|
||||||
// click
|
// click
|
||||||
this.clickTimeoutId_ = setTimeout(function() {
|
this.clickTimeoutId_ = window.setTimeout(function() {
|
||||||
this.clickTimeoutId_ = 0;
|
this.clickTimeoutId_ = 0;
|
||||||
const newEvent = new MapBrowserPointerEvent(
|
const newEvent = new MapBrowserPointerEvent(
|
||||||
MapBrowserEventType.SINGLECLICK, this.map_, pointerEvent);
|
MapBrowserEventType.SINGLECLICK, this.map_, pointerEvent);
|
||||||
|
|||||||
Reference in New Issue
Block a user