Moved mobileBreakpoint condition before e.preventDefault