Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54308, comment 7


Ignore:
Timestamp:
02/11/2022 09:44:29 AM (2 years ago)
Author:
arthur791004
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54308, comment 7

    initial v1  
    22
    33I also dive into this issue and found that the root cause is the `doResize` function is triggers before x1, x2, y1, y2 are initialized. Then, it causes the calculation for `x1 = min(x1, left + imgWidth);` results `NaN`. (See https://github.com/WordPress/wordpress-develop/blob/968b3fc5a4aa9871ce8654b48502f8710fc804a1/src/js/_enqueues/vendor/imgareaselect/jquery.imgareaselect.js#L597). Therefore, there is no cropping selection at the beginning.
     4
     5See https://github.com/WordPress/wordpress-develop/pull/2302