@alisowski/react-resizable-panels
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -252,6 +252,9 @@ 'use strict'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -258,0 +261,0 @@ } |
@@ -252,6 +252,9 @@ 'use strict'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -258,0 +261,0 @@ } |
@@ -228,6 +228,9 @@ import * as React from 'react'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -234,0 +237,0 @@ } |
@@ -228,6 +228,9 @@ import * as React from 'react'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -234,0 +237,0 @@ } |
@@ -254,6 +254,9 @@ 'use strict'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -260,0 +263,0 @@ } |
@@ -254,6 +254,9 @@ 'use strict'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -260,0 +263,0 @@ } |
@@ -230,6 +230,9 @@ import * as React from 'react'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -236,0 +239,0 @@ } |
@@ -232,6 +232,9 @@ 'use strict'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -238,0 +241,0 @@ } |
@@ -208,6 +208,9 @@ import * as React from 'react'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -214,0 +217,0 @@ } |
@@ -230,6 +230,9 @@ import * as React from 'react'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -236,0 +239,0 @@ } |
@@ -232,6 +232,9 @@ 'use strict'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -238,0 +241,0 @@ } |
@@ -208,6 +208,9 @@ import * as React from 'react'; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if (nextSize !== prevSizes[index] && isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -214,0 +217,0 @@ } |
{ | ||
"name": "@alisowski/react-resizable-panels", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -92,9 +92,9 @@ import { isDevelopment } from "#is-development"; | ||
// If the panel isn't at it's min size, we can stop here | ||
// this panel has room to modify. | ||
if ( | ||
nextSize !== prevSizes[index] && | ||
isGreaterThanOrEqualIsh(deltaApplied, fullDelta) | ||
) { | ||
// If any panel has changed size, we have room to resize | ||
if (nextSize !== prevSizes[index]) { | ||
hasRoom = true; | ||
} | ||
// If there is no more delta to apply, we can stop here. | ||
if (isGreaterThanOrEqualIsh(deltaApplied, fullDelta)) { | ||
break; | ||
@@ -101,0 +101,0 @@ } |
828357
22697