remove scrolling

This commit is contained in:
Josh Hawkins 2025-10-27 13:04:35 -05:00
parent 51f5d4cbda
commit 0220d1ebd7

View File

@ -130,22 +130,8 @@ export default function TriggerView({
setTriggeredTrigger((prev) => {
const current = prev || [];
const isFirstTrigger = current.length === 0;
if (!current.includes(triggers_status_ws.name)) {
const newTriggers = [...current, triggers_status_ws.name];
// Only scroll if this is the first triggered trigger
if (isFirstTrigger) {
const target = document.querySelector(
`#trigger-${triggers_status_ws.name}`,
);
if (target) {
target.scrollIntoView({
block: "center",
behavior: "smooth",
inline: "nearest",
});
}
}
return newTriggers;
}
return current;