mirror of
https://github.com/unraid/webgui.git
synced 2026-01-03 16:14:54 -06:00
Add "Move To End" icon
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user