diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-06 11:30:50 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-06 11:30:50 +0200 |
commit | 5135f236c2ff57a7002a2b1e27b7b61e8bf3d1f7 (patch) | |
tree | 29a934285af8b2db70a47c737fbe4c83eb75c6b1 /view/tpl/cover_photo_widget.tpl | |
parent | 78c847ef7db90dc8dac7724e8671f1219e34befa (diff) | |
download | volse-hubzilla-5135f236c2ff57a7002a2b1e27b7b61e8bf3d1f7.tar.gz volse-hubzilla-5135f236c2ff57a7002a2b1e27b7b61e8bf3d1f7.tar.bz2 volse-hubzilla-5135f236c2ff57a7002a2b1e27b7b61e8bf3d1f7.zip |
improve cover-photo handling
Diffstat (limited to 'view/tpl/cover_photo_widget.tpl')
-rwxr-xr-x | view/tpl/cover_photo_widget.tpl | 3 |
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', ''); |