dynamic-virtual-scroller
Advanced tools
Comparing version
{ | ||
"name": "dynamic-virtual-scroller", | ||
"version": "3.0.16", | ||
"version": "3.0.17", | ||
"description": "A virtual scroller for the web that can handle dynamic row and column sizes.", | ||
@@ -5,0 +5,0 @@ "main": "virtual-scroller.js", |
@@ -157,2 +157,8 @@ import {ATTRIBUTES, EVENTS, CLASSES, DATA} from "./constants"; | ||
config.container.addClass(CLASSES.container); | ||
// Prevent native scrolling if we are using css-transforms instead. | ||
// Native scrolling might be caused by the browser to move focused inputs into view | ||
config.container.on('scroll', function () { | ||
config.container.scrollTop(0); | ||
config.container.scrollLeft(0); | ||
}); | ||
} | ||
@@ -305,4 +311,4 @@ config.canvas.addClass(CLASSES.canvas); | ||
/* | ||
For dynamic sizes | ||
*/ | ||
For dynamic sizes | ||
*/ | ||
@@ -309,0 +315,0 @@ if (params.rowIndex !== undefined && params.columnIndex === undefined) { |
Sorry, the diff of this file is too big to display
529393
0.12%7400
0.16%