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:
Andrew Nacin 2012-04-27 18:05:43 +00:00
parent 5f902262d1
commit 8f0e83ffdc
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ var postboxes;
items: '.postbox',
handle: '.hndle',
cursor: 'move',
delay: ( $('body').hasClass('mobile') ? 200 : 0 ),
distance: 2,
tolerance: 'pointer',
forcePlaceholderSize: true,