Scrolling ngGrid vertically continues to jump backwards

This error occurs in IE9, it probably occurs in an earlier version of IE. The error could not be reproduced in Chrome.

ngGrid, scrolling with the mouse does not scroll down the page. He continues to jump back to the same place. To go to the page, you need to use the scroll bar at the edge of the browser.

+4
source share
1 answer

The problem is ngGridDirectives.directive'ngViewport'in ngGrid js.

He tries to focus on the "top" element, and this causes a flicker / jump.

Solution: find element binding mousewheel

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

All Articles