[bugfix] Popup: lock-scroll not work when open multi popup (#842)

This commit is contained in:
neverland
2018-04-10 10:39:54 +08:00
committed by GitHub
parent 91f44010e7
commit 1b6f9ba075
6 changed files with 111 additions and 49 deletions

View File

@@ -69,7 +69,7 @@ export default create({
// prevent long tap to close component
const deltaTime = new Date() - this.touchStartTime;
if (deltaTime < 100 && Math.abs(this.deltaX) < 20 && Math.abs(this.deltaY) < 20) {
this.close();
this.$emit('input', false);
}
}
}