зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 30174, mouse wheel does not scroll FTP directories. r=troy.
This commit is contained in:
Родитель
be9e2860b2
Коммит
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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче