зеркало из https://github.com/mozilla/gecko-dev.git
For mousewheel text resizing, ignore HTML form controls and XUL content, to avoid triggering resizing in cases where the user is both ctrl+clicking and scrolling (bug 65355). r=hewitt, sr=hyatt.
This commit is contained in:
Родитель
e3d321d3b9
Коммит
a4474ab6d4
|
@ -1958,7 +1958,17 @@ nsEventStateManager::PostHandleEvent(nsIPresContext* aPresContext,
|
|||
break;
|
||||
|
||||
case MOUSE_SCROLL_TEXTSIZE:
|
||||
ChangeTextSize((msEvent->delta > 0) ? 1 : -1);
|
||||
{
|
||||
// Exclude form controls and XUL content.
|
||||
nsCOMPtr<nsIContent> content;
|
||||
aTargetFrame->GetContent(getter_AddRefs(content));
|
||||
if (content &&
|
||||
!content->IsContentOfType(nsIContent::eHTML_FORM_CONTROL) &&
|
||||
!content->IsContentOfType(nsIContent::eXUL))
|
||||
{
|
||||
ChangeTextSize((msEvent->delta > 0) ? 1 : -1);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
*aStatus = nsEventStatus_eConsumeNoDefault;
|
||||
|
|
Загрузка…
Ссылка в новой задаче