[improvement] sort out utils (#2672)

This commit is contained in:
neverland
2019-02-02 10:41:01 +08:00
committed by GitHub
parent 0eb06b10a8
commit f0056297c6
9 changed files with 93 additions and 90 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
import manager from './manager';
import context from './context';
import scrollUtils from '../../utils/scroll';
import { on, off } from '../../utils/event';
import Touch from '../touch';
import { on, off } from '../../utils/event';
import { getScrollEventTarget } from '../../utils/scroll';
export default {
mixins: [Touch],
@@ -159,7 +159,7 @@ export default {
onTouchMove(e) {
this.touchMove(e);
const direction = this.deltaY > 0 ? '10' : '01';
const el = scrollUtils.getScrollEventTarget(e.target, this.$el);
const el = getScrollEventTarget(e.target, this.$el);
const { scrollHeight, offsetHeight, scrollTop } = el;
let status = '11';