#20557 closed enhancement (fixed)
Sortable meta boxes are too touchy
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | UI | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
When scrolling a screen with many sortable meta boxes on a touch device, there is a high likelihood of inadvertently dragging a meta box around. This becomes very frustrating very quickly.
Attachments (4)
Change History (10)
#2
@
13 years ago
- Cc xoodrew@… added
Had the same problem on my TouchPad. The patch adds just enough delay to remove the annoying-factor. +1
@
13 years ago
Please confirm, but this should apply the change only on 'mobile' (touch screen) devices.
#4
@
13 years ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In [20614]:
@
13 years ago
tweaked the last patch for speed, and modified another ifcheck to use the body class (which has much more logic thrown into it in the back-end than just checking the UA string)
#5
follow-up:
↓ 6
@
13 years ago
Not sure if it's worth changing to this latest patch, but it may speed one bit up and tidy another.
#6
in reply to:
↑ 5
@
13 years ago
Replying to georgestephanis:
In theory:
$('body').hasClass('mobile')
is pretty fast,document.body.className.match(/mobile/)
is few milliseconds faster but could potentially match something else (class like 'not-mobile'),$(document.body).hasClass('mobile')
is another way to reference the body and seems a tiny bit faster than the tag name above.
Note: See
TracTickets for help on using
tickets.
20557.diff introduces a delay of 200 to adjust. This does not seem to impact actual dragging into place on a computer, as mouse movement to drag takes at least that long to accomplish.