initDragEvent(rule)

ZILtoid1991@lemmy.world to 196@lemmy.blahaj.zone – 196 points –
27

It’s probably something queer coded

You're telling me a queer coded this software?

This is actually from my code, and this is the function in question being called, and yes, I'm bisexual. I never was into drag, but I respect that community.

notifies the event handler that the mouse is being dragged

Close! It’s actually that bit on Boston Dynamics latest android that starts each morning with a nice slow drag on a cigarette.

I've never used it, but I imagine this is related to the html drag & drop feature?

Looks like it to me. Probably something that takes an object (element, component depending on library, etc) and starts the “drag and drop” process so the object “moves” with the mouse.

When you run this code, a bunch of drag queens will show up at your door and do a performance.

If you check a DragEvent's currentTarget it will always point to some appendage of a "dom".

Maybe I've looked at too much javascript, because that took me a while...