From 6a338e28b281e30bfa5be788957e86e0de0060f1 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 6 Sep 2018 14:27:56 +0200 Subject: -1 has issues in some browsers --- view/tpl/cover_photo_widget.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl index 7972b8e81..e8af6f6dc 100755 --- a/view/tpl/cover_photo_widget.tpl +++ b/view/tpl/cover_photo_widget.tpl @@ -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', ''); -- cgit v1.2.3