Remove unused :disable-scroll angular directive

This commit is contained in:
Cillian O'Ruanaidh
2024-11-15 10:17:22 +00:00
committed by Konrad
parent 0b389b8ff4
commit 1fb987f0bd

View File

@@ -1,10 +0,0 @@
angular.module('Darkswarm').directive "ofnDisableScroll", ()->
# Stops scrolling from incrementing or decrementing input value
# Useful for number inputs
restrict: 'A'
link: (scope, element, attrs)->
element.bind 'focus', ->
element.bind 'mousewheel', (e)->
e.preventDefault()
element.bind 'blur', ->
element.unbind 'mousewheel'