此错误发生在 IE9 上,也可能发生在早期版本的 IE 中。 该错误无法在 Chrome 上重现。
ngGrid,用鼠标滚动不会向下滚动页面。它不断跳回同一位置。您需要使用浏览器边缘的滚动条来向下滚动页面。
最佳答案
问题出在 ngGrid js
中的 ngGridDirectives.directive'ngViewport'
中。
它试图关注“顶部”元素,这会导致闪烁/跳跃。
解决方案:查找元素绑定(bind)mousewheel
elm.bind("mousewheel DOMMouseScroll", function() {
isMouseWheelActive = true;
// if (elm.focus) { elm.focus(); } <-- comment out this line
return true;
});
关于angularjs - ngGrid垂直滚动不断向上跳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25170504/