Skip to content

Commit

Permalink
Bug 1631518 - Add a test. r=tnikkel
Browse files Browse the repository at this point in the history
Depends on D75144

Differential Revision: https://phabricator.services.mozilla.com/D75145
  • Loading branch information
staktrace committed May 13, 2020
1 parent fc36c15 commit 04919ab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gfx/layers/apz/test/mochitest/helper_hittest_touchaction.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
<div id="taScroller3">
<div></div>
</div>
<div id="taScroller4" style="touch-action: pan-y">
<div style="overflow:hidden"></div>
</div>
</div>
</body>
<script type="application/javascript">
Expand Down Expand Up @@ -325,6 +328,15 @@
config.utils.getViewId(document.getElementById("taScroller3")),
layersId,
"touch-action: manipulation outside scroller gets inherited in");
checkHitResult(
hitTest(centerOf("taScroller4")),
APZHitResultFlags.VISIBLE |
APZHitResultFlags.PAN_X_DISABLED |
APZHitResultFlags.PINCH_ZOOM_DISABLED |
APZHitResultFlags.DOUBLE_TAP_ZOOM_DISABLED,
config.utils.getViewId(document.getElementById("taScroller4")),
layersId,
"overflow:hidden div doesn't reset pan-x/pan-y from enclosing scroller");
}

if (!config.isWebRender) {
Expand Down

0 comments on commit 04919ab

Please sign in to comment.