function setupEventListeners() {
    // eslint-disable-next-line no-undef
    window.addEventListener('mousemove', resizeNavbar);
    // eslint-disable-next-line no-undef
    window.addEventListener('touchmove', resizeNavbar);
  }
Only resize if pageX in range between min and max
allowed value.