Ron Au commited on
Commit
d752f48
1 Parent(s): cae3326

fix(ui): Disable scrollTo when in iFrame

Browse files
Files changed (1) hide show
  1. source/ui/src/lib/Notes.svelte +1 -1
source/ui/src/lib/Notes.svelte CHANGED
@@ -32,7 +32,7 @@ onMount(() => {
32
  });
33
  }
34
 
35
- section.scrollIntoView({ behavior: 'smooth', block: 'start' });
36
  });
37
 
38
  afterUpdate((): void => {
 
32
  });
33
  }
34
 
35
+ window.scrollTo({ top: section.offsetTop, behavior: 'smooth' });
36
  });
37
 
38
  afterUpdate((): void => {