mirror of https://github.com/layui/layui
优化 table 鼠标在固定列滚轮事件
parent
d87e3491aa
commit
f65cb3bb7c
|
@ -2611,6 +2611,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||||
var scrollTop = that.layMain.scrollTop();
|
var scrollTop = that.layMain.scrollTop();
|
||||||
var step = 30;
|
var step = 30;
|
||||||
|
|
||||||
|
e.preventDefault();
|
||||||
that.layMain.scrollTop(scrollTop + (delta > 0 ? -step : step));
|
that.layMain.scrollTop(scrollTop + (delta > 0 ? -step : step));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue