resize do not work on mouse move slowly
Thanks for opening an issue!
Please select the type of issue you're reporting. For questions.
- [x] Bug
- [ ] Feature Request
- [ ] Question
Problem Report
We are using react-resizable component in order to resize images and spacer in ORY-editor. We have ORY-Editor version 2.4.2 and latest version of react-resizable. We are facing issue resize image on moving mouse slowly. We have to move mouse faster to resize image or spacer. We face issue in all browsers. Could you please help me out in this scenario.
Here is the code of react resize :
<ReactResizeable
className={classNames('ory-cell-inner', 'ory-cell-resizable', {
[ory-cell-resizable-inline-${inline || ''}]: inline,
})}
onResize={this.onResize}
minConstraints={inline ? null : [this.state.stepWidth, Infinity]}
maxConstraints={
inline ? null : [bounds.right * this.state.stepWidth, Infinity]
}
draggableOpts={{ axis: 'none', offsetParent: document.body }}
width={this.state.width}
height={0}
>
{/* this div needs to be kept or resize will be broken */}
System Info
Node Version: v10.16.0 Browser: Chrome, IE OS: Windows 10
Reproduction
If this is a bug report, please provide a reproduction of the issue by going to https://codesandbox.io/s/9229wz40yo?fontsize=14. Paste a link here to your working reproduction.