ant-design-mobile icon indicating copy to clipboard operation
ant-design-mobile copied to clipboard

浮动面板希望加上拉动的偏移值这个属性

Open fengqinglingyu opened this issue 3 years ago • 2 comments

Version of antd-mobile

No response

What is this feature about?

现在在使用浮动面板这个组件,有个比较不满意的地方就是,拉动偏移不能自己设置 当 [200, 400, 800],这样的有三个阈值的还好,拉动不要拉动太大距离就能切换,从200 到 400,从 400 到 800 也还好 但是当 [200, 800] 这样的,就很离谱了,拉动的偏离很大,就导致,经常拉不上去,因为偏移的阈值不够预设值的阈值,导致直接反弹到200了,要它倒800,要往上拉更大的距离,这个距离,是否可以作为一个属性暴露出来

fengqinglingyu avatar Jan 14 '22 07:01 fengqinglingyu

有道理,我们后面优化一下

awmleer avatar Jan 14 '22 08:01 awmleer

update 一下,估计是会做成一个惯性系数

awmleer avatar Mar 01 '22 02:03 awmleer