Fix types for events

This commit is contained in:
Andreas Hocevar
2020-05-10 18:00:04 +02:00
parent 33ce206bab
commit c6341bbcd9
4 changed files with 13 additions and 11 deletions

View File

@@ -243,7 +243,7 @@ class OverviewMap extends Control {
const move = function (event) {
const position = /** @type {?} */ (computeDesiredMousePosition(event));
const coordinates = ovmap.getEventCoordinateInternal(
/** @type {Event} */ (position)
/** @type {MouseEvent} */ (position)
);
overlay.setPosition(coordinates);