Module type for ol.pointer.PointerEvent

This commit is contained in:
Frederic Junod
2018-04-20 08:47:27 +02:00
parent a43b90056b
commit a84863528c
2 changed files with 5 additions and 5 deletions

View File

@@ -388,7 +388,7 @@ PointerEventHandler.prototype.contains_ = function(container, contained) {
* @param {string} inType A string representing the type of event to create.
* @param {Object} data Pointer event data.
* @param {Event} event The event.
* @return {ol.pointer.PointerEvent} A PointerEvent of type `inType`.
* @return {module:ol/pointer/PointerEvent~PointerEvent} A PointerEvent of type `inType`.
*/
PointerEventHandler.prototype.makeEvent = function(inType, data, event) {
return new PointerEvent(inType, event, data);
@@ -423,7 +423,7 @@ PointerEventHandler.prototype.fireNativeEvent = function(event) {
* This proxy method is required for the legacy IE support.
* @param {string} eventType The pointer event type.
* @param {Event} event The event.
* @return {ol.pointer.PointerEvent} The wrapped event.
* @return {module:ol/pointer/PointerEvent~PointerEvent} The wrapped event.
*/
PointerEventHandler.prototype.wrapMouseEvent = function(eventType, event) {
const pointerEvent = this.makeEvent(