@alisowski/react-resizable-panels
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -574,3 +574,4 @@ 'use strict'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -577,0 +578,0 @@ } |
@@ -578,3 +578,4 @@ 'use strict'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -581,0 +582,0 @@ } |
@@ -554,3 +554,4 @@ import * as React from 'react'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -557,0 +558,0 @@ } |
@@ -550,3 +550,4 @@ import * as React from 'react'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -553,0 +554,0 @@ } |
@@ -576,3 +576,4 @@ 'use strict'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -579,0 +580,0 @@ } |
@@ -580,3 +580,4 @@ 'use strict'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -583,0 +584,0 @@ } |
@@ -556,3 +556,4 @@ import * as React from 'react'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -559,0 +560,0 @@ } |
@@ -450,3 +450,4 @@ 'use strict'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -453,0 +454,0 @@ } |
@@ -426,3 +426,4 @@ import * as React from 'react'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -429,0 +430,0 @@ } |
@@ -552,3 +552,4 @@ import * as React from 'react'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -555,0 +556,0 @@ } |
@@ -450,3 +450,4 @@ 'use strict'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -453,0 +454,0 @@ } |
@@ -426,3 +426,4 @@ import * as React from 'react'; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if (nextSize < minSize && Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000") { | ||
return collapsedSize; | ||
@@ -429,0 +430,0 @@ } |
{ | ||
"name": "@alisowski/react-resizable-panels", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -547,3 +547,7 @@ import { isDevelopment } from "#is-development"; | ||
// to avoid a visual flickering when dragging between collapsed and min size. | ||
if (nextSize < minSize) { | ||
// Account for floating point math imprecision | ||
if ( | ||
nextSize < minSize && | ||
Math.abs(minSize - nextSize).toFixed(10) !== "0.0000000000" | ||
) { | ||
return collapsedSize; | ||
@@ -550,0 +554,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
824135
22633