From f70abc2899a7bf1494eefd999ca4934591c0aa09 Mon Sep 17 00:00:00 2001 From: Kiko Ruiz Date: Tue, 22 Jul 2025 09:36:26 +0200 Subject: [PATCH 1/2] ignore package lock --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ad46b30..9972163 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ build/Release # Dependency directories node_modules/ jspm_packages/ +package-lock.json # TypeScript v1 declaration files typings/ From 0d0ffcb65ede736a3570c4784d513855083c1caa Mon Sep 17 00:00:00 2001 From: Kiko Ruiz Date: Tue, 22 Jul 2025 09:36:41 +0200 Subject: [PATCH 2/2] fix ssr --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7c8d3a5..48c8e2f 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ import { useEffect, useRef, useState, useCallback } from 'react'; // Edge has a bug where scrollHeight is 1px bigger than clientHeight when there's no scroll. -const isEdge = typeof navigator !== 'undefined' && /Edge\/\d./i.test(window.navigator.userAgent); +const isEdge = typeof navigator !== 'undefined' && /Edge\/\d./i.test(navigator.userAgent); // Small hook to use ResizeOberver if available. This fixes some issues when the component is resized. // This needs a polyfill to work on all browsers. The polyfill is not included in order to keep the package light.