Repository navigation
Added throttle mechanism for mouse wheel on horizontal scroll for tab… - #97361
billyLumberjack (billyLumberjack) wants to merge 1 commit into
Conversation
Benjamin Pasero (bpasero)
left a comment
There was a problem hiding this comment.
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. |
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:418hence 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