modules/pointerEvents.js
function pointerUp(e) {
        // Does our event is the same as the activePointer set by pointerdown?
        if (activePointer && activePointer.id === e.pointerId) {
            // Have we moved too much?
            if (Math.abs(activePointer.x - (e.x || e.pageX)) < 5 &&
                Math.abs(activePointer.y - (e.y || e.pageY)) < 5) {
                // Have we scrolled too much?
                if (!isScrolling ||
                    (Math.abs(sDistX - window.pageXOffset) < 5 &&
                    Math.abs(sDistY - window.pageYOffset) < 5)) {
                    makePointertapEvent(e);
                }
            }
        }
        activePointer = null;
    }
function pointerUp(e) {
        // Does our event is the same as the activePointer set by pointerdown?
        if (activePointer && activePointer.id === e.pointerId) {
            // Have we moved too much?
            if (Math.abs(activePointer.x - (e.x || e.pageX)) < 5 &&
                Math.abs(activePointer.y - (e.y || e.pageY)) < 5) {
                // Have we scrolled too much?
                if (!isScrolling ||
                    (Math.abs(sDistX - window.pageXOffset) < 5 &&
                    Math.abs(sDistY - window.pageYOffset) < 5)) {
                    makePointertapEvent(e);
                }
            }
        }
        activePointer = null;
    }
function pointerUp ( e ) { // Does our event is the same as the activePointer set by pointerdown? if ( activePointer && activePointer . id === e . pointerId ) { // Have we moved too much? if ( Math . abs ( activePointer . x - ( e . x || e . pageX ) ) < 5 && Math . abs ( activePointer . y - ( e . y || e . pageY ) ) < 5 ) { // Have we scrolled too much? if ( ! isScrolling || ( Math . abs ( sDistX - window . pageXOffset ) < 5 && Math . abs ( sDistY - window . pageYOffset ) < 5 ) ) { makePointertapEvent ( e ) ; } } } activePointer = null ; }
Handles the 'pointerup' event from pointerEvents polyfill or native PointerEvents when supported.

@private
@param {MouseEvent|PointerEvent} e Event.
Handles the pointerup event from pointerEvents polyfill or native PointerEvents when supported .