@zakisheriff/liquid-glass 0.3.9 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -949,7 +949,10 @@ function useRefraction(ref, shape = {}, enabled = true, mirror, mirrorActive) {
|
|
|
949
949
|
};
|
|
950
950
|
const observer = new ResizeObserver(() => {
|
|
951
951
|
cancel?.();
|
|
952
|
-
|
|
952
|
+
const timer = setTimeout(() => {
|
|
953
|
+
cancel = idle(fit);
|
|
954
|
+
}, 140);
|
|
955
|
+
cancel = () => clearTimeout(timer);
|
|
953
956
|
});
|
|
954
957
|
observer.observe(element);
|
|
955
958
|
fit();
|