Bug 849552 - <input type=range> should be given focus on mousedown/touchstart. r=smaug.

This commit is contained in:
Jonathan Watt 2013-03-12 11:30:03 +00:00
parent 863b628724
commit f1f779657e

View File

@ -3112,9 +3112,6 @@ nsHTMLInputElement::PostHandleEventForRangeThumb(nsEventChainPostVisitor& aVisit
}
}
aVisitor.mEvent->mFlags.mMultipleActionsPrevented = true;
// Also set this to tell the native code on Android that it should not
// scroll:
aVisitor.mEventStatus = nsEventStatus_eConsumeNoDefault;
} break;
case NS_MOUSE_MOVE:
@ -3130,9 +3127,6 @@ nsHTMLInputElement::PostHandleEventForRangeThumb(nsEventChainPostVisitor& aVisit
SetValueOfRangeForUserEvent(rangeFrame->GetValueAtEventPoint(
static_cast<nsInputEvent*>(aVisitor.mEvent)));
aVisitor.mEvent->mFlags.mMultipleActionsPrevented = true;
// Also set this to tell the native code on Android that it should not
// scroll:
aVisitor.mEventStatus = nsEventStatus_eConsumeNoDefault;
break;
case NS_MOUSE_BUTTON_UP: