提交 2f4002a4 编写于 作者: J JiM-W

删除tap事件

上级 bf6762e1
......@@ -125,6 +125,7 @@ function bindEvents(evts, el, attrs, cmlEvents, appearAttached) {
*/
if (evts.tap) { //这里取到tap事件进行代理,而不是原来的click事件,区分了tap和click
evts['cml$tap'] = extend({}, evts.tap);
delete evts.tap; //zepto,scroller等可能会在touchend阶段创建tap事件并触发它所以要删除;
if (!hasBubbleParent) {
evts.click = {
value: '$stopOuterA'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册