diff --git a/source/app/static/assets/js/iris/case.timeline.js b/source/app/static/assets/js/iris/case.timeline.js index 074b08c27..95ade813f 100644 --- a/source/app/static/assets/js/iris/case.timeline.js +++ b/source/app/static/assets/js/iris/case.timeline.js @@ -1046,8 +1046,12 @@ function to_page_up() { } function to_page_down() { - window.scrollTo(0,document.body.scrollHeight); - } + // Get last element ID of the timeline + let last_element_id = $('.timeline li:last > div').attr('id').replace('event_', ''); + + // Scroll to the last element + $('html').animate({ scrollTop: $('#event_'+last_element_id).offset().top - 80 }); +} function show_time_converter(){ $('#event_date_convert').show();