Reposition crop boundary when window resizes.

This commit is contained in:
Aaron van Geffen 2020-12-17 12:56:41 +01:00
parent 5344378333
commit a83b938f8a

View File

@ -218,6 +218,8 @@ class CropEditor {
moveTarget.addEventListener('mousedown', this.moveSelectionStart.bind(this));
moveTarget.addEventListener('mousemove', this.moveSelection.bind(this));
moveTarget.addEventListener('mouseup', this.moveSelectionEnd.bind(this));
window.addEventListener('resize', this.positionBoundary.bind(this));
}
cropSelectionStart(event) {