lagrange icon indicating copy to clipboard operation
lagrange copied to clipboard

Add horizontal scrollbar for preformatted blocks

Open ghost opened this issue 4 years ago • 5 comments

preformatted text blocks (aka ```) can span longer than page's width, and therefore become unable to be seen or selected (for example gemini://gemini.ctrl-c.club/~pine/)

would be nice if something could be done about that

ghost avatar Feb 08 '21 21:02 ghost

Currently there is minimal support for horizontally scrolling preformatted blocks, using the mouse wheel or Mac trackpad. I agree completely that a scrollbar should be there, too.

skyjake avatar Feb 09 '21 06:02 skyjake

Scrolling horizontally with the mouse wheel does not work for me. I'm using Lagrange 1.17.0 on Debian 12 with the Sway window manager (Wayland).

nervuri avatar Oct 18 '23 22:10 nervuri

@nervuri We would need to figure out if your mouse wheel's horizontal direction causes any SDL events to be triggered. I could add a new input event logging option that prints out the SDL events that are received.

skyjake avatar Oct 19 '23 11:10 skyjake

@nervuri We would need to figure out if your mouse wheel's horizontal direction causes any SDL events to be triggered. I could add a new input event logging option that prints out the SDL events that are received.

Wait, you need a fancy mouse with horizontal scrolling for this? I thought this was supposed to work by placing the mouse pointer over a preformatted block and moving the regular mouse wheel up and down. This scrolls the page (so it does trigger events), just not the preformatted block.

nervuri avatar Oct 19 '23 22:10 nervuri

From v1.17.1 release notes:

Mouse wheel scrolls a wide preformatted block when hovering over the block, instead of scrolling vertically. You can hold the Shift key to swap the scroll direction.

Thanks!

nervuri avatar Oct 22 '23 11:10 nervuri