mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-16 06:58:54 +00:00
Issue #1356 - Remove -moz-user-input disabled to improve event handling.
This commit is contained in:
@@ -150,15 +150,9 @@ nsImageControlFrame::HandleEvent(nsPresContext* aPresContext,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
if (mContent->HasAttr(kNameSpaceID_None, nsGkAtoms::disabled)) { // XXX cache disabled
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
*aEventStatus = nsEventStatus_eIgnore;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user