mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-30 22:14:56 +01:00
Use the smooth scrolling protocol to scroll the diff and the grid of applications pixel by pixel, with touchpads and high resolution mouse wheels, in terminals that support it. - Add a scrolling package, with a Scroller that displays lines of content in a smooth scroll region, drawing only the lines that move into it, and redrawing all lines, including the partially visible one, without losing the offset of the region, falling back to scrolling by whole lines in terminals that do not support the protocol. Also an Indicator, the scroll bar with a draggable thumb, previously duplicated in the mouse demo and choose-app kittens. The mouse demo kitten now uses both. - diff kitten: The diff is drawn line by line as it scrolls, images are placed from their first visible line and clipped to the region by the terminal. With the sticky header, the region is below it and the header shows the file the line above the region would be in, so that the header of the next file scrolls in below it and replaces it. - choose-app kitten: Scrolling no longer changes the current application, moving with the keyboard scrolls it into view. The grid is drawn line by line, icons whose top is above the grid are placed with a source rectangle. Placeholders for applications without icons are rendered as images with indexed colors, as text drawn with the text sizing protocol cannot be partially displayed. The screen is no longer cleared on every mouse move, which would reset the offset of the region.