leefsmp / Re-Flex

Resizable Flex layout container components for advanced React web applications
https://leefsmp.github.io/Re-Flex/index.html
MIT License
639 stars 72 forks source link

the onStopResize is getting called before onResize event of ReflexElement #134

Closed satya-imaginea closed 3 years ago

satya-imaginea commented 3 years ago

it is always been observed that the onStopResize is being called before onResize each time.

leefsmp commented 3 years ago

So far I don't reproduce that behavior, do you have a code sandbox/codepen/... which can reproduce the issue? The onStopResize is being fired upon mouseup event whereas the onResize is fired upon mousemove. Also in most cases you would not typically use both events for the same purpose, I mostly use onResize when I have a 3d viewer which needs to be re-rendered when its container gets resized.

leefsmp commented 3 years ago

Closing due to inactivity and not reproducible case, feel free to reopen and provide a sandbox demo. Thanks