Simple code
// Events
$(document).on('mousewheel DOMMouseScroll', "element", function(e) {
let delta = e.originalEvent.wheelDelta;
if (delta > 0 || e.originalEvent.detail < 0) upScrollFunction();
if (delta < 0 || e.originalEvent.detail > 0) donwScrollFunction();
}