diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index c0786fc2df39..9a4625c93619 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -2852,7 +2852,7 @@ void ScrollFrameHelper::ScrollToImpl(nsPoint aPt, const nsRect& aRange, // in the first place, because it causes various regressions (bug 1543485 // tracks a proper fix). bool suppressScrollOriginChange = false; - if (presContext->PresShell()->GetIsViewportOverridden() && aPt == curPos) { + if (StaticPrefs::apz_allow_zooming() && aPt == curPos) { suppressScrollOriginChange = true; }