Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
dynamic-virtual-scroller
Advanced tools
A virtual scroller for the web that can handle dynamic row and column sizes.
Hi Github!
VirtualScroller requires jquery and lodash to be loaded beforehand. More documentation is coming soon...
First, we tried just using the native scrolling and adding/removing rows when needed. The scroller was also tightly coupled to the data at that point. This solution had a couple of drawbacks:
Structure: container canvas
The next version of the scroller still used native scrolling but didn't render the items in the same container. Instead, we used a scrollContainer in the background that we could bind scroll events on and rendered to a second container that was on top of the other. So scrolling was still native but we moved the items using translate only (sticky and non-sticky). That way there was no more flickering. But unfortunately this solution did not play well with mobile because the events of the canvas-container and the scroll-container conflicted.
Structure: container scrollContainer scrollCanvas canvasContainer [stickyCanvasContainer] canvas
Version 2 did not use native scrolling at all but instead recreates the behavior using the mousewheel event and then translating the content as if it was scrolled. That way we have total control over the scrolling process and only need one container.
Structure: container [stickyCanvasContainer] canvas
Version 3 uses native scrolling when possible in order to deliver the best scrolling performance on mobile. Only for sticky columns and rows, where native scrolling would lead to flickering, we use the translate-approach. You can also force the scoller to use translation for scrolling by setting useNativeScrollingWhenPossible to false.
FAQs
A virtual scroller for the web that can handle dynamic row and column sizes.
The npm package dynamic-virtual-scroller receives a total of 16 weekly downloads. As such, dynamic-virtual-scroller popularity was classified as not popular.
We found that dynamic-virtual-scroller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.