diff --git a/scripts/program-calendar.js b/scripts/program-calendar.js index 0e3cf1d..872dec3 100644 --- a/scripts/program-calendar.js +++ b/scripts/program-calendar.js @@ -630,11 +630,12 @@ function scrollToPosition(element, scrollPct) { const maxScrollLeft = element.scrollWidth; const scrollAmt = (maxScrollLeft) * (scrollPct / 100); element.scrollTo({ - left: scrollAmt, // Replace with desired position - behavior: 'smooth' // Optional: for smooth scrolling + left: scrollAmt, + behavior: 'auto' }); } + function calculateScroll(type, viewStartYear, displayYear, displayQuarter, numYears) { const yearDiff = displayYear - viewStartYear; const yearWidthOffsetPct = (((yearDiff / numYears)) * 100);