[wp-trac] [WordPress Trac] #21705: Allow elements within wp.Uploader dropzones to be repositioned on dragenter

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 27 22:17:46 UTC 2012


#21705: Allow elements within wp.Uploader dropzones to be repositioned on dragenter
--------------------------+-------------------------
 Reporter:  koopersmith   |      Owner:  koopersmith
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.5
Component:  Media         |    Version:  3.4.1
 Severity:  normal        |   Keywords:
--------------------------+-------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21705>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list