forked from Public/pics
Reposition crop boundary when window resizes.
This commit is contained in:
parent
5344378333
commit
a83b938f8a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user