Make crop editor usable #22
@ -218,6 +218,8 @@ class CropEditor {
|
|||||||
moveTarget.addEventListener('mousedown', this.moveSelectionStart.bind(this));
|
moveTarget.addEventListener('mousedown', this.moveSelectionStart.bind(this));
|
||||||
moveTarget.addEventListener('mousemove', this.moveSelection.bind(this));
|
moveTarget.addEventListener('mousemove', this.moveSelection.bind(this));
|
||||||
moveTarget.addEventListener('mouseup', this.moveSelectionEnd.bind(this));
|
moveTarget.addEventListener('mouseup', this.moveSelectionEnd.bind(this));
|
||||||
|
|
||||||
|
window.addEventListener('resize', this.positionBoundary.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
cropSelectionStart(event) {
|
cropSelectionStart(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user