Builditluc / wiki-tui

A simple and easy to use Wikipedia Text User Interface
https://wiki-tui.net/
MIT License
405 stars 14 forks source link

Rework the Scrolling System #164

Closed Builditluc closed 1 year ago

Builditluc commented 1 year ago

This tracks the progress of the rework of the scrolling system. The goal here is to update it so that we can have custom actions for scrolling in the future and to generally make the code cleaner.

The goal here is to try and create a new ScrollView that uses our configuration of key bindings. We can then create more custom actions for any scroll view that can be configurable.

Because the ArticleView needs access to the scroll core, we need to separate the event logic and the ScrollView itself, so that the ArticleView can implement the scroller itself while every other view can be wrapped in our custom ScrollView