forked from brave/browser-laptop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only show tab previews if mouse is moving slow enough
- fixes brave#3271: Dont show tab preview unless mouse velocity is low enough - tab preview requires that either: mouse be moving slower than a velocity threshold relative to tab size (so should be relative to resolution) mouse hover for longer than a new mouseover duration threshold (this may be unnecessary, velocity seems fine) - 50% higher mouse velocity is tolerated if user is in "preview mode" (moving mouse from one tab to another, see issue brave#1434) to avoid flashing out when mousing from one tab preview to another - velocity threshold is set in `constants/settings.js`: `tabs.tab-previews.mouse-velocity-threshold` - mouseover duration threshold is set in `constants/settings.js`: `tabs.tab-previews.mouseover-duration-threshold-ms`
- Loading branch information
Showing
3 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters