Hacker News new | ask | show | jobs
by ghusbands 2572 days ago
They're using the difference in mouseX (or mouseY) to dictate the amount to rotate the object. To do that, you subtract it from the previous one (mouseX-pmouseX).