turigeza / fold-navigator

Fold navigator helps you navigate through your code folding points in Atom.
MIT License
7 stars 7 forks source link

Decrease delay time #16

Closed marcelovsantos closed 2 years ago

marcelovsantos commented 2 years ago

When you navigate quickly from shortcuts, delay time is a little bit annoying.

turigeza commented 2 years ago

@marcelovsantos Yes it's more than little annoying. But did you see this ? https://github.com/turigeza/fold-navigator/commit/dfa01a2df061b3122ee6e7ebab470ef2654e25f1

With as little as 10ms we will be back to rendering the DOM way too often and perhaps effect the people who are faster typers ?

Somehow we would need a more constructive solution to this problem. The delay is not justified at all when you are navigating the folds not even 10s and the DOM is not in need of being re-rendered. On the other hand the delay is justified when you are typing.

What do you think ?

turigeza commented 2 years ago

Hi This now has been solved I think by this pull request. Thank you, https://github.com/turigeza/fold-navigator/pull/17