From 34c09c985df4fa0e6b35f8943be64cdfcc50fe9c Mon Sep 17 00:00:00 2001 From: ahmadzaid1 <142598865+ahmadzaid1@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:33:42 +0200 Subject: [PATCH] Update scripts.js --- timeLineManager/scripts.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/timeLineManager/scripts.js b/timeLineManager/scripts.js index 0ca8ab9..7ee5291 100644 --- a/timeLineManager/scripts.js +++ b/timeLineManager/scripts.js @@ -81,21 +81,6 @@ let events = []; } } - function scrollTimeline(direction) { - const container = document.querySelector('.timeline-container'); - const scrollAmount = 300; - - if (direction === 'left') { - scrollPosition = Math.max(0, scrollPosition - scrollAmount); - } else { - scrollPosition += scrollAmount; - } - - container.scrollTo({ - left: scrollPosition, - behavior: 'smooth' - }); - } // Save timeline to localStorage whenever it changes function saveToLocalStorage() {