Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dynamic-virtual-scroller

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamic-virtual-scroller - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

2

package.json
{
"name": "dynamic-virtual-scroller",
"version": "2.2.1",
"version": "2.2.2",
"description": "A virtual scroller for the web that can handle dynamic row and column sizes.",

@@ -5,0 +5,0 @@ "main": "virtual-scroller.js",

@@ -16,3 +16,4 @@ import {ATTRIBUTES, EVENTS, CLASSES} from "./constants";

config = validateParameters(config, {
loadRange: {type: 'function'}
loadRange: {type: 'function'},
rangeSize: {type: 'number', default: 25}
});

@@ -73,9 +74,13 @@

var nextRangeIsLoaded = !!getRangeForIndex({ranges: requestedRanges, index: params.index + 1});
/*
If the next range is already loaded, we preload into the other "direction" instead.
*/
range = Range({
start: params.index,
end: params.index + 25
start: Math.max(nextRangeIsLoaded ? params.index - config.rangeSize : params.index, 0),
end: nextRangeIsLoaded ? params.index : params.index + config.rangeSize
});
requestedRanges = requestedRanges.concat(range);
}

@@ -82,0 +87,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc