Skip to content

Commit

Permalink
Update mobile breakpoint check for the mobile nav to a smaller size, …
Browse files Browse the repository at this point in the history
…at 640px.
  • Loading branch information
a6wu committed Mar 18, 2016
1 parent 4f33e9d commit 50b9ab7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/scripts/ucsd/nav.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(function(document) {
var desktop = 960;
var mobileBreakpoint = 640;
var navListIsOpened = undefined;

var mainNav = function() {
Expand Down Expand Up @@ -183,9 +184,7 @@

var isMobileView = function() {
var browserWidth = window.innerWidth;
var mobileDesktopBorder = 768;

return (browserWidth < (mobileDesktopBorder + 1));
return (browserWidth < (mobileBreakpoint + 1));
};

var addClass = function(element, className) {
Expand Down

0 comments on commit 50b9ab7

Please sign in to comment.