mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Fix bug 30174, mouse wheel does not scroll FTP directories. r=troy.
This commit is contained in:
parent
be9e2860b2
commit
b35bd6ca05
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user