console.lua: implement horizontal scroll
Bind Shift+LEFT, Shift+RIGHT, Shift+WHEEL_DOWN, Shift+WHEEL_UP, WHEEL_LEFT, WHEEL_RIGHT to scroll the menu horizontally.
This lets you see long items that get clipped, like long history entries and key bindings.
Download the artifacts for this pull request:
Windows
https://github.com/mpv-player/mpv/pull/15956#discussion_r1967951003
characters outside the window are also visible after scrolling to the right, so the text must be cut based on utf8 characters, and ... needs to be added after cutting.
or simply not cutting the text at all, but the performance might be very poor when the text is large.
Fixed