mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
Bug 338266: Scrolling doesn't work when the mouse is over page breaks. r+sr=roc
This commit is contained in:
parent
8ac789f331
commit
10b835e8f7
@ -1639,6 +1639,8 @@ nsEventStateManager::DoScrollText(nsPresContext* aPresContext,
|
||||
nsCOMPtr<nsIContent> targetContent = aTargetFrame->GetContent();
|
||||
if (!targetContent)
|
||||
GetFocusedContent(getter_AddRefs(targetContent));
|
||||
if (!targetContent)
|
||||
targetContent = aPresContext->Document()->GetRootContent();
|
||||
if (!targetContent) return NS_OK;
|
||||
nsCOMPtr<nsIDOMDocumentEvent> targetDOMDoc(
|
||||
do_QueryInterface(targetContent->GetDocument()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user