function scrollHorizontally(e, el, smoothScroll) {
  // Does not accept trackpad horizontal scroll
  if (e.wheelDeltaX === 0) {
    const delta = Math.max(-1, Math.min(1, e.wheelDelta || -e.detail));
    const scrollBehavior = smoothScroll ? 'smooth' : 'auto';
    const scrollOffset = 125;

    el.scrollBy({
      left: -(delta * scrollOffset),
      behavior: scrollBehavior,
    });
    e.preventDefault();
  }
}
Horizontally scrolls given element, `el`

@param {Event} e
Scroll Event

@param {HTMLElement} el
Element to be scrolled horizontally

@param {boolean} smoothScroll
Whether to set `scrollBehavior` to "smooth"