mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +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);
|
event.mTouches.AppendElement(aTouch);
|
||||||
nsEventStatus status;
|
nsEventStatus status;
|
||||||
widget->DispatchEvent(&event, status);
|
widget->DispatchEvent(&event, status);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!node || !aLimitToDocument || node->OwnerDoc() == aLimitToDocument) {
|
if (!node || !aLimitToDocument || node->OwnerDoc() == aLimitToDocument) {
|
||||||
// We couldn't dispatch touchend. Remove the touch from gCaptureTouchList explicitly.
|
|
||||||
TouchManager::gCaptureTouchList->Remove(aTouch->Identifier());
|
TouchManager::gCaptureTouchList->Remove(aTouch->Identifier());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user