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 3.0.32 to 3.0.33

2

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

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

import {ATTRIBUTES, EVENTS, CLASSES} from "./constants";
import utils from './utils';
import validateParameters from './validateParameters';
var {$, _} = window;
var {_} = window;

@@ -273,2 +273,12 @@ var globalState = {

config.container.on('touchmove.' + NAMESPACE, touchmoveEvent => {
/*
I'm not sure why we need this check. But without it, scrolling can't be
properly stopped, even though we remove all event listeners from the container
in scrollManager.stop(). #whyDoWeNeedToCheckForInactiveState
*/
if (state.isActive === false) {
setIsScrolling(false);
return;
}

@@ -339,2 +349,7 @@ if (globalState.activeScrollerId !== undefined && globalState.activeScrollerId !== config.scrollerId) {

}
if (state.isActive === false) { // #whyDoWeNeedToCheckForInactiveState
setIsScrolling(false);
return;
}

@@ -346,3 +361,3 @@ easingLoop = setInterval(function () {

// cancel if speed is not set or too low
if (lowSpeed) {
if (lowSpeed || state.isActive === false) { // #whyDoWeNeedToCheckForInactiveState
clearInterval(easingLoop);

@@ -349,0 +364,0 @@ setIsScrolling(false);

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