vardbg icon indicating copy to clipboard operation
vardbg copied to clipboard

The executing line highlighting should animate the scroll to line

Open dmwyatt opened this issue 4 years ago • 2 comments

It's jarring and confusing, particularly when the next line is many lines away from the current line.

For example, in the animation in the README, when it scrolls to the insertion_sort function implementation, it's not immediately clear what happened.

A possibly better implementation would have some sort of animation showing the scroll to that point and the movement of the highlight to that point.

dmwyatt avatar Jan 30 '20 00:01 dmwyatt

I'm not so sure it's a good idea because it might be a bit distracting and/or out-of-place. For example, most terminals don't have smooth scrolling in order to keep all the text aligned and some editors behave the same way.

I'll look into it though, thanks for the suggestion.

kdrag0n avatar Jan 30 '20 06:01 kdrag0n

Yes, I agree that most terminals do not do this. However, it seems like that might not be so relevant to a tool that is at least partly designed for learning.

dmwyatt avatar Jan 30 '20 17:01 dmwyatt