skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.19k stars 62 forks source link

Add horizontal scrollbar for preformatted blocks #149

Open ghost opened 3 years ago

ghost commented 3 years ago

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

skyjake commented 3 years ago

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.

nervuri commented 11 months ago

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).

skyjake commented 11 months ago

@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.

nervuri commented 11 months ago

@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 commented 11 months ago

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!