mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
6227f7e46d
commit
c0799cfa99
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user