I have a drag UI program, where the mouse cursor on the draggable element changes to a grabbing hand on click.
The problem is, I allow the drag to happen anywhere on screen, and the cursor changes over anchor tags, etc…
I’ve tried $('*').addClass('grabbing'), but it’s REALLY expensive.
Is there a simple easy code efficient way to handle this?
Do it at the CSS level:
doing it in jquery forces it to iterate every single node in the dom and rewrite its css classes. On a long document, that’s a huge waste of time.