Skip to content

Commit

Permalink
Update transcript-js.html
Browse files Browse the repository at this point in the history
  • Loading branch information
dcnb committed Oct 4, 2024
1 parent 4160aef commit 1e85421
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions _includes/transcript/js/transcript-js.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,7 @@
{% if site.data.theme.media-scroll == true %}
if (!upperElement.classList.contains("media-scroll-wrapper")) {
upperElement.classList.add("media-scroll-wrapper");}{% endif %}
if (!filtersSearch.classList.contains("retracted")) {
filtersSearch.classList.add("retracted");
console.log("adding retracted");
};

} else {
if (filtersSearch.classList.contains("retracted")) {
filtersSearch.classList.remove("retracted");
Expand All @@ -306,7 +303,7 @@

// Attach event listeners
// Throttle the checkStickyAndUpdate function with a delay of 200 ms
const throttleScrollCheck = throttle(checkStickyAndUpdate, 500);
const throttleScrollCheck = throttle(checkStickyAndUpdate, 200);

// Add an event listener to the window scroll event that calls the throttleScrollCheck function
window.addEventListener("scroll", throttleScrollCheck);
Expand Down

0 comments on commit 1e85421

Please sign in to comment.