dshmarket 1.18.0 → 1.18.1
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/client/client.js +9 -1
- package/client/client.js.map +1 -1
- package/lib/check.js +9 -1
- package/lib/dsh-cli.js +36 -11
- package/lib/types/check.d.ts +7 -0
- package/package.json +2 -2
- package/src/check.ts +20 -2
- package/src/client/MarketSection.tsx +26 -1
- package/src/dsh-cli.ts +31 -8
package/client/client.js
CHANGED
|
@@ -5365,7 +5365,15 @@ window.__ModuleLoader__.load({ id: "dshmarket", factory: (require) => {
|
|
|
5365
5365
|
]);
|
|
5366
5366
|
(0, react.useEffect)(() => {
|
|
5367
5367
|
if (catsSentinel === null || typeof IntersectionObserver === "undefined") return;
|
|
5368
|
-
const observer = new IntersectionObserver(([entry]) =>
|
|
5368
|
+
const observer = new IntersectionObserver(([entry]) => {
|
|
5369
|
+
const leftView = entry !== void 0 && !entry.isIntersecting;
|
|
5370
|
+
const root = bodyRef.current;
|
|
5371
|
+
const wrap = catsWrapRef.current;
|
|
5372
|
+
if (leftView && root !== null && wrap !== null) {
|
|
5373
|
+
if (root.scrollHeight - root.clientHeight <= wrap.offsetHeight) return;
|
|
5374
|
+
}
|
|
5375
|
+
setCatsStuck(leftView);
|
|
5376
|
+
}, {
|
|
5369
5377
|
root: bodyRef.current,
|
|
5370
5378
|
threshold: 0
|
|
5371
5379
|
});
|