Bug 1590582 - Subtract the fixed margins offset when adjusting event coordinates during hit testing, rather than adding it. r=tnikkel

The offset is applied (added) during rendering; it needs to be un-applied
(subtracted) during hit testing.

Depends on D50360

Differential Revision: https://phabricator.services.mozilla.com/D50361

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2019-10-23 22:11:35 +00:00
Родитель 9214561570
Коммит 82f4b680ab
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1881,7 +1881,7 @@ APZEventResult APZCTreeManager::ProcessTouchInput(MultiTouchInput& aInput) {
touchData.mScreenPoint = *untransformedScreenPoint;
if (mFixedPosSidesForInputBlock != eSideBitsNone) {
RecursiveMutexAutoLock lock(mTreeLock);
touchData.mScreenPoint +=
touchData.mScreenPoint -=
RoundedToInt(AsyncCompositionManager::ComputeFixedMarginsOffset(
mFixedLayerMargins, mFixedPosSidesForInputBlock));
}