Make WordPress Core

Changeset 20614


Ignore:
Timestamp:
04/27/2012 06:05:43 PM (12 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/postbox.dev.js

    r20417 r20614  
    7272                handle: '.hndle',
    7373                cursor: 'move',
     74                delay: ( $('body').hasClass('mobile') ? 200 : 0 ),
    7475                distance: 2,
    7576                tolerance: 'pointer',
Note: See TracChangeset for help on using the changeset viewer.