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