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

Flickering when close to new heading to stick #9

Open
itsonlyjames opened this issue Jun 25, 2024 · 2 comments
Open

Flickering when close to new heading to stick #9

itsonlyjames opened this issue Jun 25, 2024 · 2 comments

Comments

@itsonlyjames
Copy link

Interestingly, it seems as though it's trying to stick the new heading before the old one has actually disappeared and "stuck" the new one. Makes sense because of the height of the sticky header, but the issue is also apparent on single level headings.

Jun-25-2024 13-08-18

I became inspired for this based on VSCode, not sure if you have seen how they handle sticky headings but here is an example using the same headings. It's beautiful... the way it "drops" the old headings in preperation for the new ones. What do you think about implementing a similar approach? VSCode is open source, so surely we could reverse engineer their implementation?

Jun-25-2024 13-12-06

@imshenshen
Copy link
Owner

imshenshen commented Jun 25, 2024 via email

@itsonlyjames
Copy link
Author

Where would you first investigate in the code? I've been looking into it, and would love to have a crack. Maybe I can help you! Let me know.

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

2 participants