3.0.2 • Published 8 years ago
nd-wheel v3.0.2
nd-wheel
滚轮事件
安装
$ npm install nd-wheel --save
使用
var wheel = require('nd-wheel');
// use wheel
wheel(input, function(type, prevent) {
prevent();
if (type === 'up') {
// increase
} else if (type === 'down') {
// descrease
}
input.select();
});