一个双滑块范围选择器组件库
These are versions of this script where the code was updated. Show all versions.
回退 animate 部分代码
animate
优化 animate 动画逻辑,改用 performance.now() 获取时间戳,避免主线程阻塞导致 requestAnimationFrame 时间戳滞后。
performance.now()
requestAnimationFrame
数组克隆方式改为 .slice()。
.slice()