зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1704070 - Prevent contextmenu event dispatch in the overscroll gutter on Linux. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D111763
This commit is contained in:
Родитель
6dfa77de8f
Коммит
87503165ea
|
@ -3706,7 +3706,8 @@ void nsWindow::OnButtonPressEvent(GdkEventButton* aEvent) {
|
|||
}
|
||||
|
||||
// right menu click on linux should also pop up a context menu
|
||||
if (!StaticPrefs::ui_context_menus_after_mouseup()) {
|
||||
if (!StaticPrefs::ui_context_menus_after_mouseup() &&
|
||||
eventStatus.mApzStatus != nsEventStatus_eConsumeNoDefault) {
|
||||
DispatchContextMenuEventFromMouseEvent(domButton, aEvent);
|
||||
}
|
||||
}
|
||||
|
@ -3764,7 +3765,8 @@ void nsWindow::OnButtonReleaseEvent(GdkEventButton* aEvent) {
|
|||
mLastMotionPressure = pressure;
|
||||
|
||||
// right menu click on linux should also pop up a context menu
|
||||
if (StaticPrefs::ui_context_menus_after_mouseup()) {
|
||||
if (StaticPrefs::ui_context_menus_after_mouseup() &&
|
||||
eventStatus.mApzStatus != nsEventStatus_eConsumeNoDefault) {
|
||||
DispatchContextMenuEventFromMouseEvent(domButton, aEvent);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче