Fix bug 30174, mouse wheel does not scroll FTP directories. r=troy.

This commit is contained in:
bryner%uiuc.edu 2000-03-11 08:45:38 +00:00
parent be9e2860b2
commit b35bd6ca05
2 changed files with 4 additions and 6 deletions

View File

@ -2648,12 +2648,11 @@ nsEventStateManager::GetScrollableFrameOrView(nsIPresContext* aPresContext,
// the document view
sf = GetParentSelfScrollingFrame(aTargetFrame);
if (sf) {
#ifdef DEBUG_scroll
if (sf)
printf("GetScrollableFrameOrView: Found a SelfScrollingFrame: sf = %p\n", sf);
#endif
focusView = aView;
} else {
if (!sf) {
focusFrame = GetDocumentFrame(aPresContext);
focusFrame->GetView(aPresContext, &focusView);

View File

@ -2648,12 +2648,11 @@ nsEventStateManager::GetScrollableFrameOrView(nsIPresContext* aPresContext,
// the document view
sf = GetParentSelfScrollingFrame(aTargetFrame);
if (sf) {
#ifdef DEBUG_scroll
if (sf)
printf("GetScrollableFrameOrView: Found a SelfScrollingFrame: sf = %p\n", sf);
#endif
focusView = aView;
} else {
if (!sf) {
focusFrame = GetDocumentFrame(aPresContext);
focusFrame->GetView(aPresContext, &focusView);