UNPKG

angular-material-npfixed

Version:

The Angular Material project is an implementation of Material Design in Angular.js. This project provides a set of reusable, well-tested, and accessible Material Design UI components. Angular Material is supported internally at Google by the Angular.js, M

17 lines (15 loc) 457 B
angular.module('material.components.tabs') .directive('mdTabScroll', MdTabScroll); function MdTabScroll ($parse) { return { restrict: 'A', compile: function ($element, attr) { var fn = $parse(attr.mdTabScroll, null, true); return function ngEventHandler (scope, element) { element.on('mousewheel', function (event) { scope.$apply(function () { fn(scope, { $event: event }); }); }); }; } }; }