Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iframe anchor position is not stable #1899

Open
yheuhtozr opened this issue Oct 12, 2024 · 0 comments
Open

iframe anchor position is not stable #1899

yheuhtozr opened this issue Oct 12, 2024 · 0 comments

Comments

@yheuhtozr
Copy link
Contributor

yheuhtozr commented Oct 12, 2024

Describe the bug

When you use the iframe-* layout and set an URL with an anchor (e.g. https://sli.dev/guide/syntax.html#notes), the page often won't show at the desired position when you load the slide (I often see it at the top or bottom of the webpage). Refreshing the viewport often solves the problem but sometimes not. I am not quite sure what causes this behavior. Possibly triggered by previous navigation inputs.

Incidentally, I also ran into #492 and find it an unintuitive behavior, thus a bug.

Minimal reproduction

(To be added when I'm back at a testing env.)

You can use https://sli.dev/new to create a new project to reproduce the issue.

Environment

  • Slidev version: 0.50.0-beta.3
  • Browser: Edge or Firefox
  • OS: Windows 11 (Ubuntu 20.04 on WSL 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants