Ticket #27013: 27013.2.patch
File 27013.2.patch, 638 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/js/post.js
1064 1064 }); 1065 1065 } 1066 1066 1067 if ( ! ( 'ontouchstart' in window ) ) {1067 if ( ! ( 'ontouchstart' in window ) && $( 'body' ).hasClass( 'wp-admin' ) ) { 1068 1068 // When scrolling with mouse wheel or trackpad inside the Text editor, don't scroll the whole window 1069 1069 $content = $('#content').on( 'onwheel' in $document[0] ? 'wheel.text-editor-scroll' : 'mousewheel.text-editor-scroll', function( event ) { 1070 1070 var delta, origEvent = event.originalEvent;