Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Overlay): add lock-scroll prop #4383

Merged
merged 5 commits into from
Aug 5, 2021

Conversation

nemo-shen
Copy link
Collaborator

由于小程序阻止冒泡使用的是 catch:touchmove 所以不能像vant一样通过 onTouchmove={props.lockScroll ? preventTouchMove : noop},所以实现方式变成了增加两个同样的dom利用 wx:if 判断:(

@nemo-shen nemo-shen requested a review from chenjiahan August 4, 2021 13:18
@nemo-shen nemo-shen requested a review from chenjiahan August 5, 2021 06:01
@chenjiahan chenjiahan merged commit 74e6db7 into youzan:dev Aug 5, 2021
@nemo-shen nemo-shen deleted the overlay-lock-scroll_0804 branch August 20, 2021 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants