Plato on Github
Report Home
directives/custom_scroll.js
Maintainability
67.20
Lines of code
35
Difficulty
4.09
Estimated Errors
0.13
Function weight
By Complexity
By SLOC
'use strict'; /** * @ngdoc directive * @name SnsApp.directive:googleAnalytics * @description * # googleAnalytics */ angular.module('SnsApp') .directive('customScroll', function() { return { restrict: 'A', link: function postLink(scope, iElement) { iElement.mCustomScrollbar({ autoHideScrollbar: false, theme: "rounded-dark", mouseWheel: { scrollAmount: 188 }, autoExpandScrollbar: true, snapAmount: 188, snapOffset: 65, advanced: { updateOnImageLoad: true }, keyboard: { scrollType: "stepped" }, scrollButtons: { enable: true, scrollType: "stepped" } }); } }; });