Make WordPress Core

Opened 4 years ago

Last modified 2 years ago

#13524 new enhancement

Open closed widget areas when dragging onto them

Reported by: mitchoyoshitaka Owned by:
Milestone: Future Release Priority: low
Severity: minor Version: 3.0
Component: Widgets Keywords: has-patch
Focuses: Cc:


Right now if you start dragging a widget in the widget admin and drag it over a closed widget area, you have to let go once, open up the widget area, then drag again. Make it so closed widget areas open up when you drag things onto them, perhaps after a slight (500ms?) delay.

Attachments (1)

widgets.dev.js-17732.diff (2.3 KB) - added by edward mindreantre 3 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 nacin3 years ago

  • Keywords needs-patch added; widget-admin js removed
  • Milestone changed from Awaiting Review to Future Release

comment:2 edward mindreantre3 years ago

I've had a look at the code and sorta got it working. There are two problems:

  1. When dragging the closed widget holders don't open reliably. You have to drag the draggable item over the widget window title a whole bunch of times before it actually opens.
  1. When hover-opened the widget holder won't accept draggables. I'm guessing that the closed widget holder isn't available when the sorting process begins and therefore isn't included in the list of places where stuff can be dropped.

If those two problems can be solved then this patch should work. Haven't built in any delay, though.

comment:3 scribu3 years ago

  • Keywords has-patch added; needs-patch removed

comment:4 jane2 years ago

  • Component changed from Administration to Widgets
Note: See TracTickets for help on using tickets.