-
Notifications
You must be signed in to change notification settings - Fork 975
Conversation
++ |
Woah! Great job with this ❤️ !! |
@liunkae with a popup, this might cause an issue; what happens if you have a YouTube video playing and then the menu pops up? I think it'll freeze the app |
@bsclifton Yes, it does freeze temporarily. But do you think the benefits (appearance, long press drag release, staying in screen bounds, etc.) of a native menu outweigh the downside (temporary freeze)? |
@bbondy @bradleyrichter what do you think of the above ^^ ? |
By the way, also using a native menu for the new tab dropdown could fix #5763. |
Just in case, I'll leave the code to change back to non-native menus: function onReloadContextMenu (target) {
const rect = target.getBoundingClientRect()
const menuTemplate = [
CommonMenu.reloadPageMenuItem(),
CommonMenu.cleanReloadMenuItem()
]
windowActions.setContextMenuDetail(Immutable.fromJS({
left: rect.left,
top: rect.bottom + 2,
template: menuTemplate
}))
} |
@liunkae if you can change it back to a non-native menu for now and then rebase, that would be awesome 😄 We definitely appreciate the work and the native version does look good- but we'll want to keep the non-native version until we can solve (or work around) the screen blocking during popup |
One advantage of the non-native menus (and feel free to take advantage of this): |
@bsclifton I changed back to a non-native menu and fixed the file conflicts. Sorry for asking, but how do I rebase with the Brave master branch (since this branch is in my fork)? I searched everywhere, but I just cannot figure it out… |
git checkout reload-dropdown and follow the instruction :-) |
@liunkae no worries- I just rebased it for you! Let me give it one last test, then I'll merge. Thanks again 😄 |
Tested on macOS and Windows, looking great! 👍 |
git rebase -i
to squash commits (if needed).Fixes #5796
This enhancement takes advantage of
LongPressButton
, which has long press and right-click functionality out of the box. The context menu contains Reload Page and Clean Reload, the reload options currently implemented in Brave (from the View menu). Thus, Reload Page and Clean Reload have been moved toCommonMenu
.Test Plan:
Screenshot (updated):