smooth scrolling when scrolling back to item from modal
This commit is contained in:
parent
8be3f91d8e
commit
e3e9c76af2
|
@ -131,6 +131,7 @@ export const ItemSettingsMenu: React.FC<Props> = (props) => {
|
|||
if (!ref.current) return;
|
||||
window.scroll({
|
||||
top: ref.current.getBoundingClientRect().y + window.scrollY,
|
||||
behavior: "smooth",
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user