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

virtual-scroll

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

virtual-scroll - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

2

package.json
{
"name": "virtual-scroll",
"version": "1.3.1",
"version": "1.4.0",
"description": "Smooth fake scroll using CSS transform",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -46,4 +46,5 @@ virtual-scroll

- passive: if used, will use [passive events declaration](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listeners) for the wheel and touch listeners. Can be true or false. *Defaults to undefined.*
- hasKeyDown: if true, allows to use arrows to navigate, and space to jump from one screen. *Defaults to true*
### License
MIT.

@@ -36,3 +36,4 @@ 'use strict';

unpreventTouchClass: 'vs-touchmove-allowed',
limitInertia: false
limitInertia: false,
useKeyboard: true
}, options);

@@ -176,3 +177,3 @@

if(support.hasKeyDown) document.addEventListener('keydown', this._onKeyDown);
if(support.hasKeyDown && this.options.useKeyboard) document.addEventListener('keydown', this._onKeyDown);
};

@@ -195,3 +196,3 @@

if(support.hasKeyDown) document.removeEventListener('keydown', this._onKeyDown);
if(support.hasKeyDown && this.options.useKeyboard) document.removeEventListener('keydown', this._onKeyDown);
};

@@ -198,0 +199,0 @@

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