Make WordPress Core

Ticket #27013: 27013.3.patch

File 27013.3.patch, 1.2 KB (added by iseulde, 11 years ago)
  • src/wp-admin/admin-header.php

     
    6565        adminpage = '<?php echo $admin_body_class; ?>',
    6666        thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',
    6767        decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',
    68         isRtl = <?php echo (int) is_rtl(); ?>;
     68        isRtl = <?php echo (int) is_rtl(); ?>,
     69        isAdmin = true;
    6970</script>
    7071<meta name="viewport" content="width=device-width,initial-scale=1.0">
    7172<?php
  • src/wp-admin/js/post.js

     
    10641064                });
    10651065        }
    10661066
    1067         if ( ! ( 'ontouchstart' in window ) ) {
     1067        if ( ! ( 'ontouchstart' in window ) && isAdmin ) {
    10681068                // When scrolling with mouse wheel or trackpad inside the Text editor, don't scroll the whole window
    10691069                $content = $('#content').on( 'onwheel' in $document[0] ? 'wheel.text-editor-scroll' : 'mousewheel.text-editor-scroll', function( event ) {
    10701070                        var delta, origEvent = event.originalEvent;