[wp-trac] [WordPress Trac] #22696: Selecting and reordering media problem

WordPress Trac noreply at wordpress.org
Tue Dec 4 22:52:20 UTC 2012


#22696: Selecting and reordering media problem
-------------------------------------+-----------------------
 Reporter:  pavelevap                |       Owner:  ryan
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  3.5
Component:  Media                    |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------

Comment (by markjaquith):

 I think the problem is that the overlap is calculated by the cursor (I
 tried 'intersect' — it was no better), and if you grab the cursor at the
 edge of an image, overlapping the last (or first) item can become
 difficult, or impossible.

 {{{sortable.diff}}} is kind of unorthodox. It centers the cursor, using
 cursorAt, and kills the margin on the dragged item for the duration of the
 drag. Load up a gallery edit screen without and with the patch. Compare.
 I'm not 100% happy with either, but ui.sortable is kind of a pain like
 that.

 Also twitchy is the toolbar mini-thumbnail dragging. We should limit that
 to the x-axis. I couldn't figure out how to do that, since the sortable
 initialization seems to be in one function.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22696#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list