Spaces:
Runtime error
Runtime error
Ron Au
commited on
Commit
•
d752f48
1
Parent(s):
cae3326
fix(ui): Disable scrollTo when in iFrame
Browse files
source/ui/src/lib/Notes.svelte
CHANGED
@@ -32,7 +32,7 @@ onMount(() => {
|
|
32 |
});
|
33 |
}
|
34 |
|
35 |
-
|
36 |
});
|
37 |
|
38 |
afterUpdate((): void => {
|
|
|
32 |
});
|
33 |
}
|
34 |
|
35 |
+
window.scrollTo({ top: section.offsetTop, behavior: 'smooth' });
|
36 |
});
|
37 |
|
38 |
afterUpdate((): void => {
|