Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add horizontal scrollbar for preformatted blocks #149

Open
ghost opened this issue Feb 8, 2021 · 5 comments
Open

Add horizontal scrollbar for preformatted blocks #149

ghost opened this issue Feb 8, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Feb 8, 2021

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 skyjake added the enhancement New feature or request label Feb 9, 2021
@skyjake
Copy link
Owner

skyjake commented Feb 9, 2021

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
Copy link

nervuri commented Oct 18, 2023

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
Copy link
Owner

skyjake commented Oct 19, 2023

@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
Copy link

nervuri commented Oct 19, 2023 via email

skyjake added a commit that referenced this issue Oct 20, 2023
Holding down Shift forces a horizontal mouse wheel direction.
Hovering over a wide preformatted block also causes a mouse wheel to
scroll horizontally.

IssueID #149
@nervuri
Copy link

nervuri commented Oct 22, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants