mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
优化 table 鼠标在固定列滚轮事件
This commit is contained in:
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
Block a user