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

关于这个上滑下滑和滚动条的问题 #13

Open
uncleMrWang opened this issue Oct 12, 2019 · 2 comments
Open

关于这个上滑下滑和滚动条的问题 #13

uncleMrWang opened this issue Oct 12, 2019 · 2 comments

Comments

@uncleMrWang
Copy link

这个在父级div绑定上滑下滑事件时候,,子div高度过高,,父级出现滚动条,,在手机上上滑的时候会同步触发这个绑定的父级事件,,请问怎么处理

@lenvonsam
Copy link
Owner

最好能有个demo,这样可以快速定位问题,解决问题

@uncleMrWang
Copy link
Author

Swipe me! 上滑
{{ item }}
<script> export default { name: 'HelloWorld', props: { msg: String }, methods: { onTap() { console.log('a'); }, onPress() { console.log('长按', 'a'); }, onSwipeLeft(event) { console.log('左滑', event); }, onSwipeRight(event) { console.log('右滑', event); }, onSwipeUp(event) { console.log('上滑', event); }, onSwipeDown(event) { console.log('下滑', event); }, }, mounted() { } } </script> <style scoped lang="less"> .divSwipe { height: 500px; background: #ccc; margin-bottom: 20px; overflow:auto; .test { color: #fff; } } </style>

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

No branches or pull requests

2 participants