mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Popup): lock-scroll not work in some cases (#6698)
This commit is contained in:
parent
9d5b734170
commit
ebe4036e1a
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user