fix: incorrect vnode order in some cases (#6140)

This commit is contained in:
neverland
2020-04-26 21:40:44 +08:00
committed by GitHub
parent 50a4dc681c
commit 7102129601
4 changed files with 49 additions and 6 deletions

View File

@@ -162,7 +162,6 @@ export default createComponent({
const deltaTime = new Date() - this.touchStartTime;
const { offsetX = 0, offsetY = 0 } = this.$refs.swipe || {};
console.log('deltaTime', deltaTime);
// prevent long tap to close component
if (deltaTime < DOUBLE_CLICK_INTERVAL && offsetX < 10 && offsetY < 10) {
if (!this.doubleClickTimer) {