Had the wrong integer value for the right mouse button.

This commit is contained in:
hyatt%netscape.com 1999-05-18 06:05:43 +00:00
Родитель e01ebb5b88
Коммит 030f73ed26
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -151,7 +151,7 @@ XULPopupListenerImpl::MouseDown(nsIDOMEvent* aMouseEvent)
// Check for right mouse button down
aMouseEvent->GetButton(&button);
// XXX: Handle Mac
if (button == 2) {
if (button == 3) {
// Time to launch a context menu.
LaunchPopup(aMouseEvent);
}

Просмотреть файл

@ -151,7 +151,7 @@ XULPopupListenerImpl::MouseDown(nsIDOMEvent* aMouseEvent)
// Check for right mouse button down
aMouseEvent->GetButton(&button);
// XXX: Handle Mac
if (button == 2) {
if (button == 3) {
// Time to launch a context menu.
LaunchPopup(aMouseEvent);
}