Skip to content

Added throttle mechanism for mouse wheel on horizontal scroll for tab… - #97361

Closed
billyLumberjack (billyLumberjack) wants to merge 1 commit into
microsoft:masterfrom
billyLumberjack:mouse-switch-tabs-too-fast
Closed

billyLumberjack (billyLumberjack) wants to merge 1 commit into
microsoft:masterfrom
billyLumberjack:mouse-switch-tabs-too-fast

Conversation

@billyLumberjack

@billyLumberjack billyLumberjack (billyLumberjack) commented May 9, 2020 •

Copy link
Copy Markdown

Hello,
Thanks for reviewing my PR.
I tried to introduce as less code as possible, moreover the throttle mechanism used here is already in use in src/vs/editor/browser/controller/textAreaInput.ts:418 hence no new patterns are introduced.

Hope it helps,
Regards.

This PR fixes #96409

P.s. the current handler does not take into account the scrolling length but the time only : a big horizontall scroll could represent the need to scroll more than one tab

@msftclas

Microsoft Contribution License Agreements (msftclas) commented May 9, 2020 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@bpasero Benjamin Pasero (bpasero) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the approach but throttling alone does not seem to fix all the issues for me at least when using the Apple MBP touchpad. I often see my scroll not take any effect, maybe because there are events coming in for different scroll directions, not sure. The scrolling is not smooth when using trackpad and I think that would be the goal of the change.

@bpasero Benjamin Pasero (bpasero) added this to the On Deck milestone May 10, 2020
@billyLumberjack

Copy link
Copy Markdown
Author

Thanks for the approach but throttling alone does not seem to fix all the issues for me at least when using the Apple MBP touchpad. I often see my scroll not take any effect, maybe because there are events coming in for different scroll directions, not sure. The scrolling is not smooth when using trackpad and I think that would be the goal of the change.

Thanks Benjamin Pasero (@bpasero) for the feedback, I agree, the UX using just the throttling is not comfortable enough.
Are you sure some events are lost ? To me it looks that we should take into account the scroll distance.
I am studying a solution...

@bpasero
Benjamin Pasero (bpasero) marked this pull request as draft May 22, 2020 17:09
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trackpad: Tab switch on mouse scroll: horizontal scrolling sensitivity too high

3 participants