Skip to content

fixed issue that prevented mouse wheel from scrolling multiline tabs - #428

Open
redyoshi49q wants to merge 1 commit into
tabkit:masterfrom
redyoshi49q:multiline_scroll_fix
Open

fixed issue that prevented mouse wheel from scrolling multiline tabs#428
redyoshi49q wants to merge 1 commit into
tabkit:masterfrom
redyoshi49q:multiline_scroll_fix

Conversation

@redyoshi49q

Copy link
Copy Markdown

I had been experiencing an issue in my browser setup where the tab bar could be vertically scrolled by clicking and dragging the scroll bar, but doing the same was not possible via the mouse wheel.

I eventually diagnosed this issue as stemming from the Tabkit extension; the section of code that handles tab bar scrolling relies on a variable that's set to null for configurations other than tab tree mode, and with a null value for that variable, the error checking logic that includes this line gets triggered. I added in additional logic to set this variable to a non-null value for multiline tab mode as well, which lets the tab bar scroll correctly.

It's possible that this entire code block could be removed without negative repercussions, so long as an XML element with the box-inherit and scrollbox-innerbox classes always exists regardless of configuration settings. I have not dug into the code to check whether or not this is the case.

It's possible that this entire code block could be removed without negative
repercussions, so long as an XML element with the box-inherit and
scrollbox-innerbox classes always exists regardless of configuration settings.
I have not dug into the code to check whether or not this is the case, so I
added a second exception for not returning null for multi-line tab configs.
@redyoshi49q
redyoshi49q requested a review from PikachuEXE as a code owner August 6, 2026 03:43
@PikachuEXE

Copy link
Copy Markdown
Member

I think I need some code comment above the if code to explain what it means... (and I don't even understand it fully right now :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants