Skip to content

project_panel: Fix scrolling in empty area below file list#50683

Merged
MrSubidubi merged 2 commits intozed-industries:mainfrom
virajbhartiya:fix/project-panel-empty-section-scrollbar
Mar 4, 2026
Merged

project_panel: Fix scrolling in empty area below file list#50683
MrSubidubi merged 2 commits intozed-industries:mainfrom
virajbhartiya:fix/project-panel-empty-section-scrollbar

Conversation

@virajbhartiya
Copy link
Copy Markdown
Contributor

@virajbhartiya virajbhartiya commented Mar 4, 2026

Closes #50624

The empty bottom section of the project panel showed a horizontal scrollbar on hover, but scrolling didn't work there. Added a scroll wheel handler to the blank area that forwards scroll events to the uniform list's scroll handle, making both horizontal and vertical scrolling work from anywhere in the panel.

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

Release Notes:

  • Fixed project panel empty area showing a non-functional scrollbar; scrolling now works from anywhere in the panel

Forward scroll wheel events from the blank area at the bottom of the
project panel to the uniform list's scroll handle, so that both
horizontal and vertical scrolling work when the cursor is below the
file list.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 4, 2026
@MrSubidubi MrSubidubi self-assigned this Mar 4, 2026
Copy link
Copy Markdown
Member

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIce, good find and fix!

I jumped on this quickly to do some cleanup I came across whilst looking at the PR. Did not want to bother you with this, so decided to quickly do this myself. Hope that's fine with you, will merge after todays release just to be sure I did not break something by accident.

Thank you!

@virajbhartiya
Copy link
Copy Markdown
Contributor Author

Thanks for taking a look and cleaning things up. Appreciate it!

Copy link
Copy Markdown
Member

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MrSubidubi MrSubidubi merged commit f3e4c15 into zed-industries:main Mar 4, 2026
28 checks passed
@virajbhartiya virajbhartiya deleted the fix/project-panel-empty-section-scrollbar branch March 4, 2026 18:49
@zelenenka zelenenka added the guild Pull requests by someone in Zed Guild. NOTE: the label application is automated via github actions label Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement guild Pull requests by someone in Zed Guild. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty section of project panel shows horizontal scrollbar, but is not scrollable

3 participants