Bug 1657627 - Refine condition used in temporary workaround code. r=botond

This restricts the workaround to mobile a bit better, since the
GetIsViewportOverridden() check returns true on desktop as of bug 1644271.

Differential Revision: https://phabricator.services.mozilla.com/D86414
This commit is contained in:
Kartikaya Gupta 2020-08-07 18:16:59 +00:00
Родитель 227741192b
Коммит cbcdeefeb3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}