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

Add ability to disable scrollAnimation #94

Open
vlsi opened this issue Jun 25, 2020 · 1 comment
Open

Add ability to disable scrollAnimation #94

vlsi opened this issue Jun 25, 2020 · 1 comment

Comments

@vlsi
Copy link

vlsi commented Jun 25, 2020

Use case: there's a code sample that fits on a single screen. Then, there are steps that highlight the relevant lines/columns.

Actual behavior: as the lines are highlighted, CodeSurfer scrolls the code, which makes it harder to follow the code/highlights.

Expected behavior: there should be a way to avoid scroll animation (e.g. on a per-step basis), so the steps can highlight lines without code movement.

@vlsi
Copy link
Author

vlsi commented Jun 25, 2020

As an alternative, it might be useful to decouple highlighting from the "focused lines".

That is by default CodeSurfer might focus on the highlighted lines, however, a user might specify which lines should be "focused". Then the user might have a stable text position no matter which lines are highlighted.

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