Skip to content

Commit

Permalink
Update scripts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadzaid1 authored Dec 16, 2024
1 parent 075239f commit 34c09c9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions timeLineManager/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 34c09c9

Please sign in to comment.