Use pepjs instead of our own pointerevent polyfill

This commit is contained in:
ahocevar
2019-08-28 21:48:06 +02:00
parent aca4a39863
commit 74e8e013cf
27 changed files with 197 additions and 2430 deletions

View File

@@ -80,13 +80,13 @@ class PointerInteraction extends Interaction {
this.handlingDownUpSequence = false;
/**
* @type {!Object<string, import("../pointer/PointerEvent.js").default>}
* @type {!Object<string, PointerEvent>}
* @private
*/
this.trackedPointers_ = {};
/**
* @type {Array<import("../pointer/PointerEvent.js").default>}
* @type {Array<PointerEvent>}
* @protected
*/
this.targetPointers = [];
@@ -199,7 +199,7 @@ class PointerInteraction extends Interaction {
/**
* @param {Array<import("../pointer/PointerEvent.js").default>} pointerEvents List of events.
* @param {Array<PointerEvent>} pointerEvents List of events.
* @return {import("../pixel.js").Pixel} Centroid pixel.
*/
export function centroid(pointerEvents) {