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

fix(Slider): fix click invalid with vertical props #4532

Merged
merged 2 commits into from
Sep 28, 2021

Conversation

nemo-shen
Copy link
Collaborator

#4486

问题一:wrapperStylebarStyle 判断 width和height应该是相反的,实际是写成了同样的判断逻辑

问题二:onClick event.detail.yscrollTop 值,而 getRect 提供的 top 是距离屏幕高度,实际应该将 event.detail.y 调整成 event.touches[0].clientY。测试时把example中的其他case删了,只保留一个vertical的是可以的。。。结果没测出来

@chenjiahan chenjiahan merged commit 91f4479 into youzan:dev Sep 28, 2021
@chenjiahan
Copy link
Member

👏👏辛苦啦

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.

None yet

2 participants