function getNativeEvent(e) {
    return e || window.event;
}
Find native event compat for legency IE.
Should be called at the begining of a native event listener.

@param {Event} [e] Mouse event or touch event or pointer event.
       For lagency IE, we use `window.event` is used.
@return {Event} The native event.