作者:但须g婚后 | 来源:互联网 | 2023-05-19 18:09
IhaveadragUIprogram,wherethemousecursoronthedraggableelementchangestoagrabbinghand
I have a drag UI program, where the mouse cursor on the draggable element changes to a grabbing hand on click.
我有一个拖动UI程序,其中可拖动元素上的鼠标光标在点击时变为抓取手。
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.
我试过$('*')。addClass('抓取'),但它真的很贵。
Is there a simple easy code efficient way to handle this?
是否有一种简单易用的代码处理方法?
3 个解决方案