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

Indent guides make scrolling less performant #12

Closed
hihayk opened this issue May 23, 2014 · 3 comments
Closed

Indent guides make scrolling less performant #12

hihayk opened this issue May 23, 2014 · 3 comments

Comments

@hihayk
Copy link

hihayk commented May 23, 2014

The plugin makes the scrolling in brackets less smooth.

@hihayk hihayk changed the title Slow scroll Less smooth scroll May 23, 2014
@lkcampbell
Copy link
Owner

@hihayk, that is correct. Any extension that creates a large number of stylized spans via CodeMirror overlays makes scrolling less smooth. As another example, take a look at the Show Whitespace extension. It also uses a lot of CodeMirror overlay stylization as well and has a similar problem.

Unfortunately, unless there is another way to implement indent guides that doesn't use CodeMirror overlays that I don't know about, there isn't a lot I can do about it. Certainly open to any ideas or suggestions though.

@hihayk
Copy link
Author

hihayk commented May 23, 2014

Thanks Lance, I'm not a developer so I can't suggest anything.
Anyway I love the extension, and made the lines color brighter.

@lkcampbell
Copy link
Owner

Changing this issue to a code challenge.

Is there a way to make CodeMirror mode overlays more performant?

Are there any other ways to implement indent guides without using CodeMirror mode overlays?

@lkcampbell lkcampbell changed the title Less smooth scroll Indent guides make scrolling less performant Oct 3, 2014
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