Changeset 29247
- Timestamp:
- 07/19/2014 06:54:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/common.js
r29086 r29247 611 611 window.wpResponsive = { 612 612 init: function() { 613 var self = this, 614 scrollStart = 0; 613 var self = this; 615 614 616 615 // Modify functionality based on custom activate/deactivate event … … 636 635 637 636 // Add menu events 638 $adminmenu.on( 'touchstart.wp-responsive', 'li.wp-has-submenu > a', function() { 639 scrollStart = $window.scrollTop(); 640 }).on( 'touchend.wp-responsive click.wp-responsive', 'li.wp-has-submenu > a', function( event ) { 641 if ( ! $adminmenu.data('wp-responsive') || 642 ( event.type === 'touchend' && $window.scrollTop() !== scrollStart ) ) { 643 637 $adminmenu.on( 'click.wp-responsive', 'li.wp-has-submenu > a', function( event ) { 638 if ( ! $adminmenu.data('wp-responsive') ) { 644 639 return; 645 640 }
Note: See TracChangeset
for help on using the changeset viewer.