Skip to content

Feature: Added middle click to scroll#18243

Merged
yair100 merged 4 commits intomainfrom
ya/ClickToScroll
Mar 13, 2026
Merged

Feature: Added middle click to scroll#18243
yair100 merged 4 commits intomainfrom
ya/ClickToScroll

Conversation

@yair100
Copy link
Copy Markdown
Member

@yair100 yair100 commented Mar 11, 2026

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Confirmed cursor correctly changes when scrolling
  2. Confirmed auto scroll turns off after the second click

@yair100 yair100 requested a review from 0x5bfa March 11, 2026 23:20
@yair100 yair100 added the ready for review Pull requests that are ready for review label Mar 11, 2026
Copy link
Copy Markdown
Member

@0x5bfa 0x5bfa left a comment

Choose a reason for hiding this comment

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

https://github.com/files-community/Files/tree/main/src/Files.App/Extensions is probably the best place. Implementation wise looks good. but whats the reason why you use AddHandler/RemoveHandler for events?

@yair100 yair100 requested a review from 0x5bfa March 12, 2026 16:27
@mdtauk
Copy link
Copy Markdown
Contributor

mdtauk commented Mar 12, 2026

Do we want to use the North and South icon when only vertical scrolling will be done with the Middle Click? (East and West if only vertical scrolling will happen)

InputSystemCursor - SizeNorthSouth or SizeWestEast

@yair100
Copy link
Copy Markdown
Member Author

yair100 commented Mar 12, 2026

I don't have a preference.

Copy link
Copy Markdown
Member

@0x5bfa 0x5bfa left a comment

Choose a reason for hiding this comment

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

lgtm code wise

@yair100 yair100 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Mar 13, 2026
@yair100
Copy link
Copy Markdown
Member Author

yair100 commented Mar 13, 2026

Thank you for reviewing.

@yair100 yair100 merged commit 7458853 into main Mar 13, 2026
14 of 15 checks passed
@yair100 yair100 deleted the ya/ClickToScroll branch March 13, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add middle click to scroll support

3 participants