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.4.0 to 1.5.1

2

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

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

@@ -46,5 +46,6 @@ 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*
- useKeyboard: if true, allows to use arrows to navigate, and space to jump from one screen. *Defaults to true*
- useTouch: if true, uses touch events to simulate scrolling. *Defaults to true*
### License
MIT.

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

limitInertia: false,
useKeyboard: true
useKeyboard: true,
useTouch: true
}, options);

@@ -165,3 +166,3 @@

if(support.hasTouch) {
if(support.hasTouch && this.options.useTouch) {
this.el.addEventListener('touchstart', this._onTouchStart, this.listenerOptions);

@@ -168,0 +169,0 @@ this.el.addEventListener('touchmove', this._onTouchMove, this.listenerOptions);

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