UIEvent button property is incorrect according to the DOM2 spec. Changing values to 0, 1, 2 (left, middle, right mouse buttons respectively) from 1, 2, 3. |event.which| continues to use the old values for backwards compatibility. This affects future xbl, js, and c++ event button checks so please see the newsgroups for more info (60703). r=timeless sr=jst
git-svn-id: svn://10.0.0.236/trunk@88373 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -988,7 +988,7 @@ ChromeListener::MouseDown(nsIDOMEvent* aMouseEvent)
|
||||
nsresult res = mouseEvent->GetButton(&buttonNumber);
|
||||
if (NS_FAILED(res))
|
||||
return res;
|
||||
if (buttonNumber != 3) // 3 is the magic number
|
||||
if (buttonNumber != 2) // 2 is the magic number
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIDOMEventTarget> targetNode;
|
||||
|
||||
Reference in New Issue
Block a user