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

Latency/ghosting when scrolling #6

Open
syl20bnr opened this issue May 19, 2016 · 4 comments
Open

Latency/ghosting when scrolling #6

syl20bnr opened this issue May 19, 2016 · 4 comments

Comments

@syl20bnr
Copy link

There is latency when keeping j or k pressed and the buffer continues to scroll when the user stop pressing the keys.

More info in this issue: syl20bnr/spacemacs#6094

@xcodebuild
Copy link
Owner

I can't reproduce this problem in fact. But I fix another bug with keep j
pressing. Could you try latest version on git?

@syl20bnr
Copy link
Author

syl20bnr commented May 20, 2016

I tried the last version and it is still here.
Here is another repro step:

  • Open doc/DOCUMENTATION.org of Spacemacs
  • Expand all and go to the end of file
  • keep k pressed a while then press j. On both of my machines (GNU Emacs on OS X and Ubuntu) the point will continue to go up for a random time (sometime during 2 seconds depending on how long I pressed k) and then go down.

@syl20bnr
Copy link
Author

This is due to the utilization of an idle timer. I tried without it and plug the refresh function directly in post-command hook and it does not work with smooth-scrolling.

@syl20bnr
Copy link
Author

Also I proposed some alternatives on the Spacemacs issue. Absolute lines with nlinum don't suffer ghosting so maybe we could just display relative line when evil is waiting for a motion.

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