Bug 338266: Scrolling doesn't work when the mouse is over page breaks. r+sr=roc

This commit is contained in:
sharparrow1%yahoo.com 2006-06-15 03:21:51 +00:00
parent 8ac789f331
commit 10b835e8f7

View File

@ -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()));