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

slide控件拖动问题 #10

Closed
cqcmdwym opened this issue Oct 10, 2018 · 2 comments
Closed

slide控件拖动问题 #10

cqcmdwym opened this issue Oct 10, 2018 · 2 comments

Comments

@cqcmdwym
Copy link

cqcmdwym commented Oct 10, 2018

slide控件如果放在某个view中,如果这个view是通过动画出现的,比如初始位置是transform: translateX(100%),然后通过动画设成了transform: translateX(0),也就是从页面渐入,此时ready 方法里的startX计算就会有问题
wx.createSelectorQuery().in(this).select('.slider-stick__wrap').boundingClientRect((res) => {
const width = res.width
const startX = res.left //这里的计算会有问题

@Chaunjie
Copy link
Owner

好的,谢谢你的反馈

@cqcmdwym
Copy link
Author

期待修复

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