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

scroll-view横向滚动区域问题 #454

Closed
dev-kxy opened this issue May 27, 2019 · 7 comments
Closed

scroll-view横向滚动区域问题 #454

dev-kxy opened this issue May 27, 2019 · 7 comments
Assignees
Labels
@Components Components related feature New feature or request

Comments

@dev-kxy
Copy link

dev-kxy commented May 27, 2019

scroll-view
组件定义为横向滚动时,手指放在组件区域内上滑,页面无法滚动。这是个bug还是故意设计成这样的?很反人类呀,如何解决呢

@supergaojian
Copy link
Collaborator

supergaojian commented May 27, 2019

1、您主动把scrolling-y(纵向滚动)置为false的
2、我们在scroll-view中将touchmove的默认行为禁止了
3、这个行为并不反人类,设想一下,如果您在横向滚动,同时发现页面上下会出现抖动(因为放开的话会计算横向和纵向)是不是用户体验更差呢

@dev-kxy
Copy link
Author

dev-kxy commented May 27, 2019

我把scrolling-y这行代码删掉了,也不会触发页面滚动,而是触发组件区域的上下滚动

@dev-kxy
Copy link
Author

dev-kxy commented May 27, 2019

我写scrolling-y="false"的本意是不让组件在y轴上滑动。但问题是现在手指放在组件区域内上下滑动,页面都不动。。。

@supergaojian
Copy link
Collaborator

1、我们在scroll-view中将touchmove的默认行为禁止了
2、这个行为并不反人类,设想一下,如果您在横向滚动,同时发现页面上下会出现抖动(因为放开的话会计算横向和纵向)是不是用户体验更差呢

@dev-kxy
Copy link
Author

dev-kxy commented May 27, 2019

好吧,那如何解决我目前的需求呢?我希望组件内的上下滑动可以触发页面的滚动

@xxyan0205
Copy link
Collaborator

我希望组件内的上下滑动可以触发页面的滚动

目前的版本还无法触发页面原生的滚动,因为之前对所有的touch相关事件都做了preventDefault,针对这个case 我们需要讨论下优化方案

@xxyan0205 xxyan0205 added @Components Components related discuss Need discuss labels May 27, 2019
@dev-kxy
Copy link
Author

dev-kxy commented May 27, 2019

好吧,那我先手动恢复一下touchmove事件。

@xxyan0205 xxyan0205 added feature New feature or request and removed discuss Need discuss labels Jun 11, 2019
@xxyan0205 xxyan0205 self-assigned this Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@Components Components related feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants