Issue #1356 - Remove -moz-user-input disabled to improve event handling.

This commit is contained in:
athenian200
2020-01-16 14:07:04 -06:00
committed by wolfbeast
parent 7e59ac9036
commit 563dc95cdb
23 changed files with 43 additions and 78 deletions
+1 -4
View File
@@ -227,10 +227,7 @@ nsGfxButtonControlFrame::HandleEvent(nsPresContext* aPresContext,
// from being called. The nsFrame::HandleEvent causes the button label
// to be selected (Drawn with an XOR rectangle over the label)
// do we have user-input style?
const nsStyleUserInterface* uiStyle = StyleUserInterface();
if (uiStyle->mUserInput == StyleUserInput::None ||
uiStyle->mUserInput == StyleUserInput::Disabled) {
if (IsContentDisabled()) {
return nsFrame::HandleEvent(aPresContext, aEvent, aEventStatus);
}
return NS_OK;