mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1277722, release touch objects even if dispatching touchend fails, r=masayuki
--HG-- extra : rebase_source : 33bf5c39621a6a3e82beccfb4f9d2a41aa2880aa
This commit is contained in:
parent
928ee528e1
commit
4aaedb4570
@ -67,14 +67,12 @@ EvictTouchPoint(RefPtr<dom::Touch>& aTouch,
|
||||
event.mTouches.AppendElement(aTouch);
|
||||
nsEventStatus status;
|
||||
widget->DispatchEvent(&event, status);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!node || !aLimitToDocument || node->OwnerDoc() == aLimitToDocument) {
|
||||
// We couldn't dispatch touchend. Remove the touch from gCaptureTouchList explicitly.
|
||||
TouchManager::gCaptureTouchList->Remove(aTouch->Identifier());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user