9745d6df3e
## Issue The scroll listener never unregisters, and is always registering itself on every scroll. I believe it was done that way to also handle the case of "element is already in viewport when mounted". ## Change Tried to separate both "element is already in viewport when mounted" and "element scrolled into viewport" into different effects. The timeout value used is a bit arbitrary, but is needed because the initial size is (0, 0), and to debounce any layout shifts. Reasoning: If an element is explicitly placed under this wrapper, the additional delay is acceptable since it's meant to be lazy-loaded anyway. |
||
---|---|---|
.. | ||
form-components | ||
busy-indicator.jsx | ||
card.jsx | ||
credit-amount.jsx | ||
empty.jsx | ||
error-text.jsx | ||
file-exporter.jsx | ||
file-list.jsx | ||
file-selector.jsx | ||
form.jsx | ||
help-link.jsx | ||
hidden-nsfw.jsx | ||
icon-custom.jsx | ||
icon.jsx | ||
lbc-message.jsx | ||
lbc-symbol.jsx | ||
loading-screen.jsx | ||
markdown-preview.jsx | ||
nag.jsx | ||
paginate.jsx | ||
qr-code.jsx | ||
status-bar.jsx | ||
tabs.jsx | ||
thumbnail.jsx | ||
tooltip.jsx | ||
transaction-link.jsx | ||
truncated-text.jsx | ||
wait-until-on-page.jsx |