Reposition crop boundary when window resizes.

This commit is contained in:
Aaron committed 2020-12-30 13:26:31 +01:00
1 parent 5344378333
commit a83b938f8a
1 file changed
+2
+2
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) {