onivim/oni

Can we move away from emulating neovim behavior for scrolling?

Open

#405 ouverte le 26 avr. 2017

Voir sur GitHub
 (11 commentaires) (9 réactions) (0 assignés)TypeScript (336 forks)batch import
enhancementhelp wantedinsider

Métriques du dépôt

Stars
 (11 389 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur