Opened 12 years ago
Closed 9 years ago
#20791 closed enhancement (fixed)
Add tolerance: 'pointer' option to widgets
Reported by: | alexvorn2 | Owned by: | chriscct7 |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 3.2 |
Component: | Widgets | Keywords: | has-patch commit |
Focuses: | javascript, administration | Cc: |
Description
I made a conclusion that it's more easy to sort the widgets in a sidebar if is with tolerance: 'pointer' option enabled...
please consider adding this to sortable function of the widgets.
Attachments (3)
Change History (19)
#1
follow-up:
↓ 2
@
12 years ago
- Keywords needs-patch 2nd-opinion removed
- Resolution set to invalid
- Status changed from new to closed
#2
in reply to:
↑ 1
;
follow-up:
↓ 3
@
12 years ago
- Keywords needs-patch 2nd-opinion added
- Resolution invalid deleted
- Status changed from closed to reopened
Replying to jkudish:
Looks like the latest copy of trunk already has
tolerance: pointer
It's in droppable()
function. This ticket is about sortable()
.
#3
in reply to:
↑ 2
@
12 years ago
Replying to SergeyBiryukov:
It's in
droppable()
function. This ticket is aboutsortable()
.
My mistake, should have looked closer :(
#5
@
12 years ago
- Version changed from 3.4 to 3.3.2
Version field tracks when the feature was first requested.
#7
@
12 years ago
Updated the file to apply patch to widgets.js instead of widgets.dev.js now that production js is minified.
#10
@
9 years ago
- Keywords ux-feedback added; dev-feedback removed
- Milestone changed from Awaiting Review to 4.3
- Owner set to chriscct7
- Status changed from reopened to accepted
- Version changed from 3.3.2 to 3.2
#11
follow-up:
↓ 12
@
9 years ago
Can we get a description of what "easier" is here, perhaps with some screencasts?
#12
in reply to:
↑ 11
@
9 years ago
Replying to helen:
Can we get a description of what "easier" is here, perhaps with some screencasts?
Here's a demo that shows why the pointer tolerance makes it easier:
http://jquery-ui.googlecode.com/svn/tags/1.6rc5/demos/sortable/tolerance.html
Default Tolerance:
Try dragging the box called "default tolerance" to the middle of the first row (so basically to the right of "2" in the first row). Note that you have to be past 2 before the shift happens, even though you know you're going to move it past it.
Pointer Tolerance:
Try dragging the box called "pointer tolerance" to the middle of the second row (so to the right of the row 2 "2". Note jQuery realizes you're going to drag it to the right, and does the swap after you've passed about 80% of the box.
Screencast demo: https://db.tt/VWg57PTm
#13
@
9 years ago
Is it a massive UI improvement? I mean its not earth shattering but it is slightly more intuitive and also makes position changes faster. You don't have to unintuitively drag it as far as you do right now
#14
@
9 years ago
- Focuses javascript administration added
- Keywords commit added; ux-feedback removed
Looks like the latest copy of trunk already has
tolerance: pointer
, as per: https://core.trac.wordpress.org/browser/trunk/wp-admin/js/widgets.dev.js#L153