-
Notifications
You must be signed in to change notification settings - Fork 53
Replace rc-hammer.js with rc-gesture #43
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
Conversation
@silentcloud 这个如果 ok 的话,发个大版本。 |
@paranoidjk 真机页面超过一屏就不能滚动了(含gesture 元素上下滑动),应该是 gesture 有问题 |
还有2个问题:1. 左右滑动 swipe 的时候,会导致页面上下滚动 2.快速 swipe 的时候,button 延迟 1s 左右才出现 |
Todo
|
这个我是在 antd-mobile 里用 2.0.0-alpha.0 在 webview 里测了一下 |
@silentcloud 再测一下? |
横向滑动,稍微斜一点,问题依旧, @paranoidjk |
@silentcloud 都修复了,你验证下?我这边看只剩一个问题 #42 要么把事件代理到 window,要么在 touchmove 中维持计时器,我再想想 |
加了 swipe 的支持,感觉体验好一点 |
2d248f2
to
c67718e
Compare
b698000
to
e4ca6fc
Compare
transition: all 250ms; | ||
} | ||
&-swiping .@{swipeout-prefix-cls}-content { | ||
transition: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @silentcloud antd-mobile 层面可能也要做这个处理 #44
虽然 swiping 这个 classname 实测动态的加和删也有点跟不太上。
@silentcloud 这个可以合并了 |
升大版本吧,只给 antd-mobile@2.0 用,1.0 不改。 |
@paranoidjk 我之前说的问题解决了?那些问题我还没来得及看呢 |
close #42