Allow TouchEvent to be passed to getEventPixel

This commit is contained in:
Frederic Junod
2018-09-21 09:22:44 +02:00
parent 9b447ef3ed
commit 69c6db0bc7

View File

@@ -657,7 +657,7 @@ class PluggableMap extends BaseObject {
/**
* Returns the map pixel position for a browser event relative to the viewport.
* @param {Event} event Event.
* @param {Event|TouchEvent} event Event.
* @return {import("./pixel.js").Pixel} Pixel.
* @api
*/