Let's take requestAnimationFrame to the next level and use it for debouncing resize events. We'll also dig into how to debug performance and smooth out your code.
From my experience I don't see any benefits from using requestAnimationFrame for dragging -- it will just make your code more complicated. One of the benefits of requestAnimationFrame is this:
"...only call rAF when you have visual updates to do."
requestAnimationFrame doesn't make much sense for mousemove in the context of dragging because at every mousemove event you will be be doing a re-render anyway, so there is no optimization potential by using requestAnimationFrame.

















