Dev: Move ontouchstart to root element

This commit is contained in:
surunzi
2017-04-11 11:56:53 +08:00
parent 7b9e3bdab9
commit 6f5873276e
11 changed files with 33 additions and 30 deletions

View File

@@ -22,7 +22,7 @@ export default class NavBar extends util.Emitter
let $bottomBar = this._$bottomBar;
this._len++;
this._$ul.prepend(`<li class="${name}" ontouchstart>${name}</li>`);
this._$ul.prepend(`<li class="${name}">${name}</li>`);
$bottomBar.css('left', util.pxToNum($bottomBar.css('left')) + ITEM_WIDTH);
this._resetStyle();
}