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

MovableView 的 onHTouchMove 和 onVTouchMove 支持 catch 嘛? #9494

Closed
ShenChang618 opened this issue Jun 10, 2021 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@ShenChang618
Copy link

这个特性解决了什么问题?

如题,我在 swiper 中嵌入了 Movable,我希望通过 catch onHTouchMove 和 onVTouchMove 阻止Swiper 滑动效果

这个 API 长什么样?

支持 catch onHTouchMove 和 onVTouchMove

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Jun 10, 2021
@Chen-jj
Copy link
Contributor

Chen-jj commented Jun 11, 2021

使用 catchMove 禁止滚动试试,这时会小程序模板会绑定 catchtouchmove

onHTouchMoveonVTouchMove 目前只会在模板绑定 bindhtouchmovebindvtouchmove

<View catchMove></View>

@ShenChang618
Copy link
Author

我尝试了一下发现不行,不过我自己写了一个原生的组件,嵌入到了项目中。目前这样做虽然能够解决问题,但还是比较麻烦的,希望能够把这两个 API 加上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants