-
-
Save haojingliu/78511ca49846d4f203c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| directive( 'ignoreMouseWheel', function() { | |
| return { | |
| restrict: 'A', | |
| link: function( scope, element ){ | |
| element.bind('mousewheel', function () { | |
| element.blur(); | |
| } ); | |
| } | |
| } | |
| } ); | |
| // <input type="number" ignore-mouse-wheel ... > |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove unused vars