Add a 200ms delay when dragging a meta box on mobile devices, to prevent inadvertently dragging meta boxes around on a touch screen.
props helenyhou, georgestephanis. fixes #20557. git-svn-id: https://develop.svn.wordpress.org/trunk@20614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5f902262d1
commit
8f0e83ffdc
|
@ -71,6 +71,7 @@ var postboxes;
|
|||
items: '.postbox',
|
||||
handle: '.hndle',
|
||||
cursor: 'move',
|
||||
delay: ( $('body').hasClass('mobile') ? 200 : 0 ),
|
||||
distance: 2,
|
||||
tolerance: 'pointer',
|
||||
forcePlaceholderSize: true,
|
||||
|
|
Loading…
Reference in New Issue