Skip to content

Fixed tab switch too sensitive when scrolling - #111901

Closed
Andre-Fonteles wants to merge 34 commits into
microsoft:masterfrom
Andre-Fonteles:96409-tab-switch-too-fast
Closed

Andre-Fonteles wants to merge 34 commits into
microsoft:masterfrom
Andre-Fonteles:96409-tab-switch-too-fast

Conversation

@Andre-Fonteles

Copy link
Copy Markdown
Contributor

This PR fixes #96409 - Trackpad: Tab switch on mouse scroll: horizontal scrolling sensitivity too high.

@ghost

Deleted user (ghost) commented Dec 4, 2020 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@Andre-Fonteles

Copy link
Copy Markdown
Contributor Author

Hello, I'm new here. Sorry, but I'm not sure why the VS Code checking did not pass. Any thoughts on how I could fix that? Thanks, and hope I'm able to contribute.

@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.

This follows the same approach as #97361 and has the same issues as I commented there earlier.

@Andre-Fonteles

Copy link
Copy Markdown
Contributor Author

Hi, bpasero. Thanks for taking your time to take a look at my PR. I realize that my code looks similar to the one at #97361 (specially after I had to remove some features to prevent "violating the layer"), but there is a fundamental difference between the two.

#97361 would reset the time past between the two events even when the event would not be triggered/handled. That would incur in events being lost. I only reset the time when an event is actually triggered and handled.

So, I'm assuming, and hoping, that you noticed the similarity between the two PR and didn't bother to try my branch. But I think that if you actually try my code you will see the difference. At least, I tried both and #97361 was indeed losing some events (which I couldn't see in my approach).

I would love to hear what you think again!
Thanks,

@bpasero

Copy link
Copy Markdown
Contributor

Oh I tried your change locally on my mac with touchpad and felt that sometimes when scrolling it would scroll to the second tab and then back to the first.

@Andre-Fonteles

Andre-Fonteles commented Dec 6, 2020 •

Copy link
Copy Markdown
Contributor Author

Thanks again for your feedback. I believe I fixed this issue in addition to the "tab switching too fast" in this new PR. The new code adds a second threshold, this time for the combination of deltaX and deltaY.

@bpasero

Copy link
Copy Markdown
Contributor

Andre-Fonteles I really like how you solved this for the mac touchpad, works great. However I feel now it works less than ideal for a normal mouse with a scroll button. Any chance you can try also with a normal mouse?

@Andre-Fonteles

Copy link
Copy Markdown
Contributor Author

Benjamin Pasero (@bpasero), thanks for the feedback/encouragement. I'll try to improve the scrolling with a normal mouse.

@bpasero

Copy link
Copy Markdown
Contributor

Sounds good, maybe you can find a way to tell a normal mouse scroll apart from a touch scroll.

Robo (deepak1556) and others added 8 commits December 7, 2020 11:26
* chore: bump [email protected]

This reverts commit 155691d.

* chore: bump x64 build image

* chore: rebuild remote with older gcc toolchain

* chore: bump [email protected]

* ci: remove condition for remote step

* chore: disable an integration test
@Andre-Fonteles

Copy link
Copy Markdown
Contributor Author

I leveraged deltaX and deltaY to increase mouse scrolling responsiveness. It also increased touchpad responsiveness when the user scrolls faster (hopefully it is something desirable). Sorry for bothering so much!

@bpasero

Copy link
Copy Markdown
Contributor

No problem. Is it possible that you could cleanly apply your change in a new PR on top of master branch? I see many unrelated commits coming in.

@Andre-Fonteles

Copy link
Copy Markdown
Contributor Author

I'll do it right now.

@Andre-Fonteles

Copy link
Copy Markdown
Contributor Author

Here is the new PR #112034.

@github-actions github-actions Bot locked and limited conversation to collaborators Jan 22, 2021
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

8 participants