(left)
| 520 | |
| 521 | /* fixers */ |
| 522 | fixCropperLeft(left) { |
| 523 | let newLeft = left; |
| 524 | const absLeftMiddle = this.rectLeft() + this.area.rect.clientWidth; |
| 525 | if (newLeft < this.main.elLeft()) { |
| 526 | return this.main.elLeft(); |
| 527 | } else if (newLeft > absLeftMiddle) { |
| 528 | newLeft = absLeftMiddle; |
| 529 | if (this.area.resizingL) { |
| 530 | this.area.resizingL = false; |
| 531 | this.area.resizingR = true; |
| 532 | } |
| 533 | } |
| 534 | return newLeft; |
| 535 | } |
| 536 | |
| 537 | fixCropperRight(right) { |
| 538 | let newRight = right; |
no test coverage detected