draggable
draggable copied to clipboard
requestAnimationFrame的自己实现,貌似有点小错误
源码中Math.max(16 - now - lastTime, 0);这个值一直都是0,16 - now - lastTime一直是负数。 所以正常的写法是不是应该是Math.max(16 - (now - lastTime), 0);