-
Notifications
You must be signed in to change notification settings - Fork 972
Don't show tab preview unless mouse velocity is low enough (and decelerating?) #3271
Comments
Might want to treat v as vector and only preview if slow enough, decelerating, and aimed "into" tab by some simple criteria. |
alternative to improve behaviour would be to add an initial wait time before previews are shown, after the initial preview was shown hovering over different tabs does not have a wait time so you can find the desired tab faster. vivaldi (and probably opera) have a nice behaviour for this |
- 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`
- 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`
- 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`
Whats the status of this issue? I can see there was some work done but no PR sent. |
@michalbe I don't believe we have any solutions. If this is one you'd like to solve, please feel free to grab it 😄 |
after taking this for a while here's my findings:
The best solution I found is to track relatedTarget on mouseEnter and check which element mouse was before. This way we can easily know if user is going/coming to webview/urlbar (vertical axis) or just coming from another tab. I did this a long time ago (ca9e4f8) and is the current approach we have. What is missing is a better RegExp test match so it can track every possible element. |
moving back to backlog in favor of #8860. |
- Auditors: @bridiver, @bsclifton - Fix #8860 - Fix #3271
- Auditors: @bridiver, @bsclifton - Fix #8860 - Fix #3271
- Auditors: @bridiver, @bsclifton - Fix brave#8860 - Fix brave#3271
Test plan
See #9887
Original issue description
Did you search for similar issues before submitting this one?
Yes. Related issues: #3113 #3149. Fixing this may relieve pressure on those, or not, TBD.
Describe the issue you encountered:
Tab previews are generally liked but most users I've talked to, but it's an unscientific sample and some users dislike them because they trigger too easily and cause flicker and distraction when moving the mouse over the tab bar.
Expected behavior:
When moving quickly enough, especially when accelerating away from the tab bar, no preview.
All.
0.11.5
The text was updated successfully, but these errors were encountered: