Skip to content

fix(components): 将half-screen-dialog中最外层dom的catch:touchmove改为mut-bind:touchmove,保证half-screen-dialog内部的textarea在绑定互斥的touchmove事件后能正常滚动 #268

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

Merged
merged 2 commits into from
Jul 14, 2025

Conversation

meetAndEgg
Copy link

@meetAndEgg meetAndEgg commented Jul 9, 2025

删除half-screen-dialog中最外层dom的catch:touchmove,保证half-screen-dialog内部的textarea能正常滚动

related issue: #267

@Tidyzq
Copy link
Contributor

Tidyzq commented Jul 10, 2025

catch:touchmove 是为了防止滚动穿透,不可以删除。

正确的做法应该是在半屏内容容器增加一个监听,在监听里停止事件冒泡,从而不走到 catch:touchmove

@meetAndEgg
Copy link
Author

meetAndEgg commented Jul 10, 2025

catch:touchmove 是为了防止滚动穿透,不可以删除。

正确的做法应该是在半屏内容容器增加一个监听,在监听里停止事件冒泡,从而不走到 catch:touchmove

没看懂“停止事件冒泡”,catch:touchmove不就是停止了事件冒泡了吗?
最外层dom的catch都会导致textarea无法滚动,内层catch不是更没法滚了吗

@meetAndEgg meetAndEgg changed the title fix(components): 删除half-screen-dialog中最外层dom的catch:touchmove fix(components): 将half-screen-dialog中最外层dom的catch:touchmove改为mut-bind:touchmove,保证half-screen-dialog内部的textarea在绑定互斥的touchmove事件后能正常滚动 Jul 14, 2025
@meetAndEgg
Copy link
Author

fix(components): 将half-screen-dialog中最外层dom的catch:touchmove改为mut-bind:touchmove,保证half-screen-dialog内部的textarea在绑定互斥的touchmove事件后能正常滚动

@Tidyzq Tidyzq merged commit 0c1afff into wechat-miniprogram:master Jul 14, 2025
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