Skip to content

Commit

Permalink
fixed accidentaly removed scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
aexol committed Feb 5, 2024
1 parent 7548541 commit cc63cba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/editor/src/shared/hooks/useDomManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export const useDomManagerTs = (parent: "focus" | "all") => {
DOMNavigationNode.addClassByFn("active", (e) => {
const htmlElem = e as HTMLDivElement;
const m = htmlElem.dataset.id === nodeId;
if (m) {
htmlElem.scrollIntoView({ behavior: "smooth", block: "center" });
}
return m;
});
DOMGraphConnection.addClassByFn("active", (e) => {
Expand Down

0 comments on commit cc63cba

Please sign in to comment.