In the version 2.1.55(fad1ff74),When I edit mathjax.it flashes always but not everytime.
@kleinerpirat this seems to be caused by create_in_transition(element, slide, { duration: 200 }).start()
in Popover.svelte - presumably as it animates, it reaches the threshold where it decides it has to switch directions. This also seems to be the cause of the ‘ResizeObserver loop limit exceeded’ messages that were popping up. Commenting out that line seems to solve the issue but turns off the animation - does that work for you?
This should not be the case, because on mount the final height of the popover is used to calculate the position of the popover - then it hides and animates afterwards. I’ll try to reproduce this issue and get to the bottom of it. Commenting out the line would be the worst case scenario.
This should reproduce it if you scroll up/down in the browse screen. For me it happens when about 2/3rds or more would extend off the end of the screen:
<br><anki-mathjax block="true">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15</anki-mathjax><br>
I pushed a PR: Fix popover animation causing placement switching loop by kleinerpirat · Pull Request #2246 · ankitects/anki · GitHub
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.