From 447132069fbd8a795e59fa0017cbf42701f05755 Mon Sep 17 00:00:00 2001 From: Tyrone Tse Date: Thu, 15 Aug 2024 14:54:54 -0500 Subject: [PATCH] Changed to 'auto' to disable smooth scrolling for better user experience --- scripts/program-calendar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);