Make WordPress Core

Ticket #41242: 41242.diff

File 41242.diff, 1.0 KB (added by adamsilverstein, 7 years ago)
  • src/wp-admin/js/image-edit.js

    diff --git src/wp-admin/js/image-edit.js src/wp-admin/js/image-edit.js
    index 0d8eaf081f..14af25eaf6 100644
     
    627627                                 *
    628628                                 * @returns {void}
    629629                                 */
    630                                 parent.children().mousedown(function(e){
     630                                parent.children().on( 'mousedown, touchstart', function(e){
    631631                                        var ratio = false, sel, defRatio;
    632632
    633633                                        if ( e.shiftKey ) {
  • src/wp-includes/js/imgareaselect/jquery.imgareaselect.js

    diff --git src/wp-includes/js/imgareaselect/jquery.imgareaselect.js src/wp-includes/js/imgareaselect/jquery.imgareaselect.js
    index f017895f15..a80c3626b9 100644
    $.imgAreaSelect = function (img, options) { 
    748748     */
    749749    function imgMouseDown(event) {
    750750        /* Ignore the event if animation is in progress */
    751         if (event.which != 1 || $outer.is(':animated')) return false;
     751        if (event.which > 1 || $outer.is(':animated')) return false;
    752752
    753753        adjust();
    754754        startX = x1 = evX(event);