Skipping seemingly redundant tags page scrolling logic that causes jittering in Firefox. Added hash exclude property to umami script attributes.
This commit is contained in:
@@ -151,11 +151,13 @@ function calculateActiveCategory() {
|
||||
|
||||
activeCategory.value = newCategory;
|
||||
|
||||
/* this understandably causes jittering in Firefox, why the need to scroll into the category we're already in?
|
||||
const activeLink = document.querySelector(`a[href="#${activeCategory.value}"]`);
|
||||
|
||||
activeLink.scrollIntoView({
|
||||
inline: 'center',
|
||||
});
|
||||
*/
|
||||
|
||||
navigate(`#${activeCategory.value}`, null, { replace: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user