Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Add an option for NO_DELAY in tab preview timing
Browse files Browse the repository at this point in the history
closes #8860
  • Loading branch information
cezaraugusto committed Jan 24, 2018
1 parent f9680ca commit 61f704f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/common/constants/settingsEnums.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const bookmarksToolbarMode = {
const tabPreviewTiming = {
LONG: 2000,
NORMAL: 1000,
SHORT: 500
SHORT: 500,
NO_DELAY: 50 // while this do has a value the number is set to avoid flashing while coming/going from/to urlbar
}

const tabCloseAction = {
Expand Down
1 change: 1 addition & 0 deletions app/extensions/brave/locales/en-US/preferences.properties
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ newTabHomePage=Home page
newTabMode=A new tab shows
newTabNewTabPage=Dashboard
nextContribution=Next contribution:
noDelay=No Delay
nonVerifiedPublishers=Allow contributions to non-verified sites
noPaymentHistory=No previous contributions
normal=Normal
Expand Down
4 changes: 4 additions & 0 deletions app/renderer/components/preferences/tabsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ class TabsTab extends ImmutableComponent {
{
id: 'short',
action: tabPreviewTiming.SHORT
},
{
id: 'noDelay',
action: tabPreviewTiming.NO_DELAY
}
]
}
Expand Down

0 comments on commit 61f704f

Please sign in to comment.