Skip to content

Commit

Permalink
Merge pull request #704 from INN/largoCore-fix-for-tablets
Browse files Browse the repository at this point in the history
Check for tablet size should be less than or equal to 768
  • Loading branch information
rnagle committed May 14, 2015
2 parents de0dbbf + 2db6bb6 commit 9b96476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions js/largoCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jQuery(document).ready(function($) {

if (mainEl.length) {
mainEl.waypoint(function(direction) {
if ($(window).width() < 768)
if ($(window).width() <= 768)
return false;

stickyNavEl.toggleClass('show', direction == 'down');
Expand All @@ -135,13 +135,13 @@ jQuery(document).ready(function($) {
offset: $('#wpadminbar').height() + parseInt(mainEl.css('marginTop'))
});

if ($(window).width() < 768) {
if ($(window).width() <= 768) {
stickyNavEl.addClass('show');
stickyNavEl.data('hideAtTop', false);
}

$(window).on('resize', function() {
if ($(window).width() < 768) {
if ($(window).width() <= 768) {
stickyNavEl.addClass('show');
stickyNavEl.data('hideAtTop', false);
} else {
Expand Down
2 changes: 1 addition & 1 deletion js/largoCore.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b96476

Please sign in to comment.