Bug 207637. Don't fire onchange for MouseUp events where we didn't see a mousedown. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@145922 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2794,6 +2794,9 @@ nsListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent)
|
||||
CaptureMouseEvents(mPresContext, PR_FALSE);
|
||||
// Notify
|
||||
if (mChangesSinceDragStart) {
|
||||
// reset this so that future MouseUps without a prior MouseDown
|
||||
// won't fire onchange
|
||||
mChangesSinceDragStart = PR_FALSE;
|
||||
FireOnChange();
|
||||
}
|
||||
#if 0 // XXX - this is a partial fix for Bug 29990
|
||||
|
||||
@@ -2794,6 +2794,9 @@ nsListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent)
|
||||
CaptureMouseEvents(mPresContext, PR_FALSE);
|
||||
// Notify
|
||||
if (mChangesSinceDragStart) {
|
||||
// reset this so that future MouseUps without a prior MouseDown
|
||||
// won't fire onchange
|
||||
mChangesSinceDragStart = PR_FALSE;
|
||||
FireOnChange();
|
||||
}
|
||||
#if 0 // XXX - this is a partial fix for Bug 29990
|
||||
|
||||
Reference in New Issue
Block a user