[Improvement] Cell: optimize left icon (#893)

This commit is contained in:
neverland
2018-04-19 16:10:37 +08:00
committed by GitHub
parent 24b95af824
commit 0192eb7ee8
10 changed files with 101 additions and 114 deletions

View File

@@ -90,7 +90,7 @@ export default {
if (this.lockScroll) {
if (!context.lockCount) {
document.body.classList.add('van-overflow-hidden');
on(document, 'touchstart', this.onTouchStart);
on(document, 'touchstart', this.touchStart);
on(document, 'touchmove', this.onTouchMove);
}
context.lockCount++;
@@ -125,10 +125,6 @@ export default {
}
},
onTouchStart(e) {
this.touchStart(e);
},
onTouchMove(e) {
this.touchMove(e);
const direction = this.deltaY > 0 ? '10' : '01';