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
1 changed files with 2 additions and 0 deletions

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) {