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

dynamic-virtual-scroller

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamic-virtual-scroller - npm Package Compare versions

Comparing version 3.0.29 to 3.0.30

{
"name": "dynamic-virtual-scroller",
"version": "3.0.29",
"version": "3.0.30",
"description": "A virtual scroller for the web that can handle dynamic row and column sizes.",

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

@@ -63,3 +63,3 @@ import validateParameters from './validateParameters';

drake.on('drag', function (el, source) {
if (_.isNil(attachedContainer)) {
if (_.isNil(attachedContainer) || attachedContainer.length === 0) {
return;

@@ -84,3 +84,3 @@ }

var onElementMoved = function (el, container, source) {
if (_.isNil(attachedContainer)) {
if (_.isNil(attachedContainer) || attachedContainer.length === 0) {
return;

@@ -87,0 +87,0 @@ }

@@ -287,2 +287,8 @@ import {ATTRIBUTES, EVENTS, CLASSES, DATA} from "./constants";

}
// If the container is not currently in the DOM, we don't reevaluate the sizes
// (as they would most definately be wrong anyway).
// For example this can happen using a virtual scroller inside another virtual scroller.
if ($.contains(document, config.container.get(0)) === false) {
return;
}
renderManager.reevaluateAllSizes(); // sizes of items might have changed due to resizing

@@ -289,0 +295,0 @@ renderManager.render(scrollManager);

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