virtual-scroll
Advanced tools
Comparing version 1.4.0 to 1.5.1
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16046
321
51