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

Buggy auto-scrolling/jumping on page rebuild #2

Open
LOZORD opened this issue Dec 10, 2015 · 2 comments
Open

Buggy auto-scrolling/jumping on page rebuild #2

LOZORD opened this issue Dec 10, 2015 · 2 comments

Comments

@LOZORD
Copy link
Collaborator

LOZORD commented Dec 10, 2015

@nphyatt noticed that there's a race condition where the page will either jump to an incorrect spot, or it will jump correctly without having loaded all scripts (e.g. syntax highlighting for code blocks doesn't appear).

Will look into Angular's $anchorScroll.

@LOZORD
Copy link
Collaborator Author

LOZORD commented Dec 10, 2015

To reproduce: repeatedly refresh an anchor tag like http://localhost:8000/#/pages/riffle/Riffle.md#configuration

@LOZORD
Copy link
Collaborator Author

LOZORD commented Dec 10, 2015

This seems to be related to markdown parsing. We need to somehow intercept the markdown-parsed anchor tags, and then apply $anchorScroll to them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant