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: http://svn.automattic.com/wordpress/trunk@20614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-04-27 18:05:43 +00:00
parent 0cac69f505
commit 82aacfe420
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,