🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

angular-smooth-scrollbar

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-smooth-scrollbar - npm Package Compare versions

Comparing version

to
4.2.0

4

bower.json
{
"name": "angular-smooth-scrollbar",
"version": "4.1.1",
"version": "4.2.0",
"authors": [

@@ -31,4 +31,4 @@ "Dolphin Wood <dolphin.w.e@gmail.com>"

"angular": "~1.4.3",
"smooth-scrollbar": "^4.0.2"
"smooth-scrollbar": "^4.2.1"
}
}

@@ -14,3 +14,3 @@

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

@@ -22,3 +22,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

speed: 1,
fricton: 10
fricton: 10,
ignoreEvents: []
};

@@ -38,3 +39,3 @@

this.$get = ['$q', function ($q) {
var ScrollbarService = (function () {
var ScrollbarService = function () {
function ScrollbarService() {

@@ -53,2 +54,3 @@ _classCallCheck(this, ScrollbarService);

_createClass(ScrollbarService, [{

@@ -108,2 +110,4 @@ key: 'generateName',

console.log(options);
var instance = scrollbarInstances[name] = Scrollbar.init(elem, options);

@@ -139,3 +143,3 @@

return ScrollbarService;
})();
}();

@@ -150,3 +154,4 @@ return new ScrollbarService();

speed: '@',
fricton: '@'
fricton: '@',
ignoreEvents: '='
},

@@ -156,7 +161,10 @@ link: function link(scope, elem, attrs, ctrl, transclude) {

var fricton = scope.fricton;
var ignoreEvents = scope.ignoreEvents;
var name = attrs.scrollbar || attrs.name || ScrollbarService.generateName();
console.log(ignoreEvents);
var scrollbar = ScrollbarService.createInstance(name, elem[0], {
speed: speed, fricton: fricton
speed: speed, fricton: fricton, ignoreEvents: ignoreEvents
});

@@ -163,0 +171,0 @@

@@ -6,3 +6,4 @@ angular.module('SmoothScrollbar', [])

speed: 1,
fricton: 10
fricton: 10,
ignoreEvents: []
};

@@ -77,2 +78,4 @@

console.log(options)
let instance = scrollbarInstances[name] = Scrollbar.init(elem, options);

@@ -113,10 +116,13 @@

speed: '@',
fricton: '@'
fricton: '@',
ignoreEvents: '='
},
link(scope, elem, attrs, ctrl, transclude) {
const { speed, fricton } = scope;
const { speed, fricton, ignoreEvents } = scope;
const name = attrs.scrollbar || attrs.name || ScrollbarService.generateName();
console.log(ignoreEvents)
const scrollbar = ScrollbarService.createInstance(name, elem[0], {
speed, fricton
speed, fricton, ignoreEvents
});

@@ -123,0 +129,0 @@

{
"name": "angular-smooth-scrollbar",
"version": "4.1.1",
"version": "4.2.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": "^4.0.2"
"smooth-scrollbar": "^4.2.1"
},

@@ -31,0 +31,0 @@ "devDependencies": {

@@ -76,4 +76,5 @@ # angular-smooth-scrollbar

| fricton | Number | 10 | Scrolling fricton, a percentage value within (1, 100) |
| ignoreEvents | Array | [] | A list of events names that are ignored, all handled events are: `["blur", "click", "dragend", "dragover", "dragstart", "focus", "keydown", "mousedown", "mousemove", "mouseup", "resize", "scroll", "selectstart", "touchend", "touchmove", "touchstart", "wheel"]` |
Confusing with the option field? Try editor tool [here](http://idiotwu.github.io/smooth-scrollbar/)!
Confusing with the option field? Try edit tool [here](http://idiotwu.github.io/smooth-scrollbar/)!

@@ -80,0 +81,0 @@ ## ScrollbarServiceProvider

@@ -0,0 +0,0 @@ (function(angular) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet