From 82aacfe4203cf2ff7042a33a673437307c3a129c Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 27 Apr 2012 18:05:43 +0000 Subject: [PATCH] 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 --- wp-admin/js/postbox.dev.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/js/postbox.dev.js b/wp-admin/js/postbox.dev.js index e070695844..5471d321d5 100644 --- a/wp-admin/js/postbox.dev.js +++ b/wp-admin/js/postbox.dev.js @@ -71,6 +71,7 @@ var postboxes; items: '.postbox', handle: '.hndle', cursor: 'move', + delay: ( $('body').hasClass('mobile') ? 200 : 0 ), distance: 2, tolerance: 'pointer', forcePlaceholderSize: true,