aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xview/tpl/cover_photo_widget.tpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl
index 2de3c74be..7972b8e81 100755
--- a/view/tpl/cover_photo_widget.tpl
+++ b/view/tpl/cover_photo_widget.tpl
@@ -19,7 +19,6 @@
if(hide_cover) {
hideCover();
- coverSlid = true;
}
if($(window).scrollTop() < $('#cover-photo').height()) {
@@ -36,7 +35,7 @@
});
$(window).scroll(function () {
- if($(window).width() > 755 && $(window).scrollTop() >= $('#cover-photo').height()) {
+ if($(window).width() > 755 && $(window).scrollTop() > ($('#cover-photo').height() - 1)) {
$('body').css('cursor', '');
$('.navbar').addClass('fixed-top');
$('main').css('margin-top', '');