diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout.php b/emhttp/plugins/dynamix/include/DefaultPageLayout.php index 7a1f71d5c..0d7fe8ff7 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout.php @@ -1035,10 +1035,9 @@ nchan_vmaction.on('message', function(data) { box.scrollTop(box[0].scrollHeight); }); -const scrollOffset = 250; const scrollDuration = 500; $(window).scroll(function() { - if ($(this).scrollTop() > scrollOffset) { + if ($(this).scrollTop() > 0) { $('.back_to_top').fadeIn(scrollDuration); } else { $('.back_to_top').fadeOut(scrollDuration);