本文介绍了ngGrid垂直滚动不断跳跃备份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个错误发生在IE9中,它可能是在较早版本的IE发生为好。
该错误可能无法在Chrome转载。

This bug happens on IE9, it probably happens in earlier version of IE as well. The bug cannot be reproduced on Chrome.

ngGrid,鼠标滚动不滚动的页面了。它使跳回到同一位置。您需要使用浏览器的边缘滚动条下来的页面。

ngGrid, scrolling with mouse does not scroll the page down. It keeps jumping back to same location. You need to use the scroll bar on browser edge to get down the page.

推荐答案

问题是在 ngGridDirectives.directive'ngViewport ngGrid JS

它试图把重点放在'顶'的元素,这将导致闪烁/跳跃。

It tries to focus on 'top' element, and this causes flickering/jumping.

解决方案:寻找元素绑定滚轮

Solution: Look for element bind mousewheel

elm.bind("mousewheel DOMMouseScroll", function() {
    isMouseWheelActive = true;
    // if (elm.focus) { elm.focus(); } <-- comment out this line
    return true;
});

这篇关于ngGrid垂直滚动不断跳跃备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 21:00