Bug 995475 - Clear the active element on touch end, if the touch wasn't a click. r=botond

This commit is contained in:
Kartikaya Gupta 2014-07-16 23:06:36 -04:00
parent 241a56c740
commit 5f3c0b45ec

View File

@ -118,6 +118,11 @@ ActiveElementManager::HandleTouchEnd(bool aWasClick)
CancelTask();
if (aWasClick) {
SetActive(mTarget);
} else {
// We might reach here if mCanBePan was false on touch-start and
// so we set the element active right away. Now it turns out the
// action was not a click so we need to reset the active element.
ResetActive();
}
ResetTouchBlockState();