Bug 1404255 - [Pointer Event] Turn off active state or remove current pointer from active pointers when handling pointercancel. r=masayuki

MozReview-Commit-ID: 60FEfcvtxRd

--HG--
extra : rebase_source : 51382328396fab12e8deb4c01968e8594753dbc3
This commit is contained in:
Stone Shih 2017-09-29 17:03:48 +08:00
parent 6227f7e46d
commit c0799cfa99

View File

@ -108,6 +108,10 @@ PointerEventHandler::UpdateActivePointerState(WidgetMouseEvent* aEvent)
pointerEvent->mIsPrimary));
}
break;
case ePointerCancel:
// pointercancel means a pointer is unlikely to continue to produce pointer
// events. In that case, we should turn off active state or remove the
// pointer from active pointers.
case ePointerUp:
// In this case we remove information about pointer or turn off active state
if (WidgetPointerEvent* pointerEvent = aEvent->AsPointerEvent()) {