Ticket #11801 (closed bug: wontfix)
jQuery 1.7.2 - dragleave event has no relatedTarget in Chromium
|Reported by:||mtraceur@…||Owned by:||mtraceur@…|
I'm trying to use jQuery event objects to catch different kinds of drag events in a cross-browser way. Funny thing is, each browser is apparently different, even with jQuery!
The way I figured out to test for the proper dragleave event on Firefox was, if the relatedTarget was null, then clearly the dragleave event was for the entire window (which was what I wanted), and if the DOM node referred to by relatedTarget either gave me an error when I tried to access it or was not contained by document.body, then clearly it wasn't inside of document.body.
In Chromium, however, jQuery apparently can't figure out what the relatedTarget is. This is somewhat painful to debug, and (I imagine) would be even more painful to work around, since now every single dragleave event that bubbles up to document.body appears to be exactly the same--I tried filtering out the ones where srcElement !== currentTarget, but a few still get through. That doesn't make a whole lot of sense, because none of the events that are firing were caused by an actual dragleave. The mouse is still inside of the window.
Any help with this would be awesome. Thanks so much!
- Owner set to mtraceur@…
- Status changed from new to pending