Bug 1270165 - Allow ResetTouchInputState to be called while a non-touch block is the current block. r=botond

MozReview-Commit-ID: HN3G249raKW

--HG--
extra : rebase_source : 490a634671f218139b88efb079f72e252577e88f
This commit is contained in:
Kartikaya Gupta 2016-05-04 11:57:36 -04:00
parent 06c9d50f99
commit b345ce3a32

View File

@ -3760,7 +3760,7 @@ AsyncPanZoomController::ResetTouchInputState()
CancelAnimationAndGestureState();
// Clear overscroll along the entire handoff chain, in case an APZC
// later in the chain is overscrolled.
if (TouchBlockState* block = CurrentTouchBlock()) {
if (TouchBlockState* block = CurrentInputBlock()->AsTouchBlock()) {
block->GetOverscrollHandoffChain()->ClearOverscroll();
}
}