Opened 13 years ago
Closed 13 years ago
#21705 closed defect (bug) (fixed)
Allow elements within wp.Uploader dropzones to be repositioned on dragenter
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.4.1 |
Component: | Media | Keywords: | |
Focuses: | Cc: |
Description
While working on #21390, I found that when attempting to reposition an element inside of a dropzone, browsers (namely Webkit-based browsers) will quickly fire the dragleave event, immediately followed by a dragover (which we're using to simulate dragenter), as the target of the event is quickly changed, but the ancestor we care about is still the same.
Using an immediately executed setTimeout prevents the drag-over class from being quickly removed and re-added when elements inside the dropzone are repositioned.
Note: See
TracTickets for help on using
tickets.
In [21630]: