7 lines
892 B
JavaScript
7 lines
892 B
JavaScript
/*!
|
|
* AngularJS Material Design
|
|
* https://github.com/angular/material
|
|
* @license MIT
|
|
* v1.1.18-master-97a1616
|
|
*/
|
|
function mdContentDirective(t){return{restrict:"E",controller:["$scope","$element",function(e,o){this.$scope=e,this.$element=o}],link:function(e,o){o.addClass("_md"),t(o),e.$broadcast("$mdContentLoaded",o),iosScrollFix(o[0])}}}function iosScrollFix(o){angular.element(o).on("$md.pressdown",function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===o.scrollTop?o.scrollTop=1:o.scrollHeight===o.scrollTop+o.offsetHeight&&(o.scrollTop-=1)))})}goog.provide("ngmaterial.components.content"),goog.require("ngmaterial.core"),mdContentDirective.$inject=["$mdTheming"],angular.module("material.components.content",["material.core"]).directive("mdContent",mdContentDirective),ngmaterial.components.content=angular.module("material.components.content"); |