smooth scrolls throughout
This commit is contained in:
@@ -169,12 +169,10 @@ const displayedScenarios = scenarios.slice(0, maxDisplayed);
|
||||
targetedInput.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Enter') {
|
||||
e.preventDefault();
|
||||
// Switch to grid view and scroll to results
|
||||
const gridToggle = document.querySelector('.view-toggle[data-view="grid"]');
|
||||
if (gridToggle) {
|
||||
gridToggle.click();
|
||||
// Use consolidated scroll utility
|
||||
window.scrollToElementById('tools-grid');
|
||||
setTimeout(() => window.scrollToElementById('tools-grid'), 200);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user