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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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