onivim/oni

Can we move away from emulating neovim behavior for scrolling?

Open

#405 aperta il 26 apr 2017

Vedi su GitHub
 (11 commenti) (9 reazioni) (0 assegnatari)TypeScript (336 fork)batch import
enhancementhelp wantedinsider

Metriche repository

Star
 (11.389 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I think the Grid implementation is a bit bad, and I don't mean that from an implementation perspective. The scrolling in oni, in my opinion, isn't worse than neovim. At least for me, it feels about the same. If we could somehow render a large (basically render ahead to a certain arbitrary point where it becomes not worth the benefit) portion of the Grid implementation but make it all on an actually scrollable page, we could just send a cursor position back to Neovim instead of sending scroll events. The issue with scroll events is that (especially on OSX) on modern laptops that have fast/inertia scrolling, it's just firing off too many times in a second.

Guida contributor