angular-smooth-scrollbar
Advanced tools
Comparing version 3.0.0 to 4.0.0
{ | ||
"name": "angular-smooth-scrollbar", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"authors": [ | ||
@@ -31,4 +31,4 @@ "Dolphin Wood <dolphin.w.e@gmail.com>" | ||
"angular": "~1.4.3", | ||
"smooth-scrollbar": "^3.0.0" | ||
"smooth-scrollbar": "^4.0.0" | ||
} | ||
} |
@@ -131,5 +131,3 @@ | ||
speed: '@', | ||
fricton: '@', | ||
inflection: '@', | ||
sensitivity: '@' | ||
fricton: '@' | ||
}, | ||
@@ -139,4 +137,2 @@ link: function link(scope, elem, attrs, ctrl, transclude) { | ||
var fricton = scope.fricton; | ||
var inflection = scope.inflection; | ||
var sensitivity = scope.sensitivity; | ||
@@ -146,3 +142,3 @@ var name = attrs.scrollbar || attrs.name || ScrollbarService.generateName(); | ||
var scrollbar = ScrollbarService.createInstance(name, elem[0], { | ||
speed: speed, fricton: fricton, inflection: inflection, sensitivity: sensitivity | ||
speed: speed, fricton: fricton | ||
}); | ||
@@ -149,0 +145,0 @@ |
@@ -95,12 +95,10 @@ angular.module('SmoothScrollbar', []) | ||
speed: '@', | ||
fricton: '@', | ||
inflection: '@', | ||
sensitivity: '@' | ||
fricton: '@' | ||
}, | ||
link(scope, elem, attrs, ctrl, transclude) { | ||
const { speed, fricton, inflection, sensitivity } = scope; | ||
const { speed, fricton } = scope; | ||
const name = attrs.scrollbar || attrs.name || ScrollbarService.generateName(); | ||
const scrollbar = ScrollbarService.createInstance(name, elem[0], { | ||
speed, fricton, inflection, sensitivity | ||
speed, fricton | ||
}); | ||
@@ -107,0 +105,0 @@ |
{ | ||
"name": "angular-smooth-scrollbar", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "An angular module that allows you customize smooth scrollbars", | ||
@@ -28,3 +28,3 @@ "main": "dist/angular-smooth-scrollbar.js", | ||
"angular": "^1.4.8", | ||
"smooth-scrollbar": "^3.0.0" | ||
"smooth-scrollbar": "^4.0.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
@@ -76,4 +76,2 @@ # angular-smooth-scrollbar | ||
| fricton | Number | 10 | Scrolling fricton, a percentage value within (1, 100) | | ||
| inflection | Number | 10 | When scrolling speed is lower than infleciton point, sensitivity will be scaled to 10x. | | ||
| sensitivity | Number | 0.1 | Wheel sensitivity, lower is accurate. | | ||
@@ -80,0 +78,0 @@ Confusing with the option field? Try editor tool [here](http://idiotwu.github.io/smooth-scrollbar/)! |
413487
22
468
103
+ Addedsmooth-scrollbar@4.2.2(transitive)
- Removedsmooth-scrollbar@3.1.0(transitive)
Updatedsmooth-scrollbar@^4.0.0