fix(Popup): lock-scroll not work in some cases (#6698)

This commit is contained in:
neverland
2020-07-04 10:49:39 +08:00
committed by GitHub
parent 9d5b734170
commit ebe4036e1a

View File

@@ -145,7 +145,7 @@ export function PopupMixin(options = {}) {
}, },
removeLock() { removeLock() {
if (this.lockScroll) { if (this.lockScroll && context.lockCount) {
context.lockCount--; context.lockCount--;
off(document, 'touchstart', this.touchStart); off(document, 'touchstart', this.touchStart);
off(document, 'touchmove', this.onTouchMove); off(document, 'touchmove', this.onTouchMove);