wip: avatar panning and zooming

This commit is contained in:
or-else
2021-07-10 15:39:02 -07:00
parent 72f4f47e8f
commit bc6e2ab8d2
22 changed files with 487 additions and 94 deletions
-2
View File
@@ -166,8 +166,6 @@ export default class Cropper extends React.Component {
this.mouseY = e.pageY;
}
// this.cutoutRect = this.cutout.current.getBoundingClientRect();
window.addEventListener('mousemove', this.mouseMove, { passive: false });
window.addEventListener('touchmove', this.mouseTouch, { passive: false });
window.addEventListener('mouseup', this.mouseUp, { passive: true });