Added height and width check to resize handle
This commit is contained in:
parent
f2cb8b69db
commit
b7da0cffa7
@ -51,8 +51,10 @@ function MapInteraction({
|
||||
const mapImageRef = useRef();
|
||||
|
||||
function handleResize(width, height) {
|
||||
setStageWidth(width);
|
||||
setStageHeight(height);
|
||||
if (width > 0 && height > 0) {
|
||||
setStageWidth(width);
|
||||
setStageHeight(height);
|
||||
}
|
||||
}
|
||||
|
||||
const containerRef = useRef();
|
||||
|
Loading…
Reference in New Issue
Block a user