Add "Move To End" icon

This commit is contained in:
bergware
2025-01-18 13:00:54 +01:00
parent ebfbaec3dc
commit e6d7b0bf88

View File

@@ -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);