/**
 * @since Last modified: 2024/06/03 17:08:45
 * @function isScrollUp
 * @description Standardize the browser's scroll direction and determine if the page is scrolling up.
 * @param {object} event - Mouse wheel event object.
 * @param {string} detailName - Target selector.
 * @returns {boolean} - Return true or false;
 * @see {@link https://codepen.io/axui/pen/jOomOyV|demo @ codepen}
 * @example
 * ax.isScrollUp(event);
 * <!--return true-->
 */
'use strict';
import scrollObj from "./scrollObj";
const isScrollUp = (event, detailName = scrollObj.detail) => {
    let mouseDetail = event[detailName], isUp;
    if (navigator.userAgent.indexOf("Firefox") > 0) {
        isUp = mouseDetail > 0 ? true : false;
    }
    else {
        isUp = mouseDetail < 0 ? true : false;
    }
    return isUp;
};
export default isScrollUp;
