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(scroll-view): add prop is-prevent #468

Merged
merged 5 commits into from
Jun 13, 2019
Merged

Conversation

xxyan0205
Copy link
Collaborator

背景描述

通过新增属性is-prevent设置,当在非可滚动区域触发滚动时,是否也阻止默认行为。如在横向滚动区域触发纵向滚动,需触发浏览器默认滚动的场景 #454

主要改动

增加is-prevent,以控制是否调用touchmove内部的前置event.preventDefault()

需要注意

@@ -260,6 +266,10 @@ export default {
}
}

if (!this.isPrevent) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

判断两次?

@xxyan0205 xxyan0205 merged commit 8cef3d4 into dev Jun 13, 2019
@xxyan0205 xxyan0205 deleted the fix_scrollview_default branch June 13, 2019 09:05
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.

3 participants