/**
 * @since Last modified: 2024/04/19 15:22:51
 * @function preventDft
 * @description Compatibility writing of stop default events.
 * @param  {*} event - Mouse event or touch event.
 * @param  {boolean} [enhance=false] - Whether to stop the incident bubbling and transfer.
 * @returns null
 * @see {@link https://codepen.io/axui/pen/zYeMmgb|demo @ codepen}
 * @example
 * ax.preventDft(event);
 * <!--return null-->
 */
'use strict';
const preventDft = (event, enhance = false) => {
    event.cancelable ? event.preventDefault() : null;
    enhance ? event.stopPropagation() : null;
};
export default preventDft;
