From e6d7b0bf88625ea1f4e0e9a608560d3afa7f2bec Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 18 Jan 2025 13:00:54 +0100 Subject: [PATCH] Add "Move To End" icon --- emhttp/plugins/dynamix/include/DefaultPageLayout.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);