Fix type check errors in ol/pointer

This commit is contained in:
Kevin Schmidt
2018-10-03 10:41:29 -06:00
parent 83763a73d9
commit d3a82b0586
4 changed files with 9 additions and 8 deletions

View File

@@ -171,6 +171,7 @@ class MsSource extends EventSource {
* @return {Object} The copied event.
*/
prepareEvent_(inEvent) {
/** @type {MSPointerEvent|Object} */
let e = inEvent;
if (typeof inEvent.pointerType === 'number') {
e = this.dispatcher.cloneEvent(inEvent, inEvent);