-1 has issues in some browsers

This commit is contained in:
Mario Vavti 2018-09-06 14:27:56 +02:00
parent f3ce5e73fe
commit 6a338e28b2

View File

@ -35,7 +35,7 @@
});
$(window).scroll(function () {
if($(window).width() > 755 && $(window).scrollTop() > ($('#cover-photo').height() - 1)) {
if($(window).width() > 755 && $(window).scrollTop() > $('#cover-photo').height()) {
$('body').css('cursor', '');
$('.navbar').addClass('fixed-top');
$('main').css('margin-top', '');