Ticket #27980: 27980.diff
File 27980.diff, 1.0 KB (added by , 11 years ago) |
---|
-
wp-admin/js/common.js
581 581 582 582 window.wpResponsive = { 583 583 init: function() { 584 var self = this, 585 scrollStart = 0; 584 var self = this; 586 585 587 586 // Modify functionality based on custom activate/deactivate event 588 587 $document.on( 'wp-responsive-activate.wp-responsive', function() { … … 606 605 } ); 607 606 608 607 // Add menu events 609 $adminmenu.on( 'touchstart.wp-responsive', 'li.wp-has-submenu > a', function() { 610 scrollStart = $window.scrollTop(); 611 }).on( 'touchend.wp-responsive click.wp-responsive', 'li.wp-has-submenu > a', function( event ) { 612 if ( ! $adminmenu.data('wp-responsive') || 613 ( event.type === 'touchend' && $window.scrollTop() !== scrollStart ) ) { 614 608 $adminmenu.on( 'click.wp-responsive', 'li.wp-has-submenu > a', function( event ) { 609 if ( ! $adminmenu.data('wp-responsive') ) { 615 610 return; 616 611 } 617 612