mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
fix(Popup): lock-scroll not work in some cases (#6698)
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user