virtual-scroll
Advanced tools
Comparing version 1.3.1 to 1.4.0
{ | ||
"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 @@ |
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
15915
320
50
7