dynamic-virtual-scroller
Advanced tools
Comparing version 3.0.35 to 3.0.36
{ | ||
"name": "dynamic-virtual-scroller", | ||
"version": "3.0.35", | ||
"version": "3.0.36", | ||
"description": "A virtual scroller for the web that can handle dynamic row and column sizes.", | ||
@@ -5,0 +5,0 @@ "main": "virtual-scroller.js", |
@@ -186,8 +186,15 @@ import {ATTRIBUTES, EVENTS, CLASSES} from "./constants"; | ||
if (config.useNativeScrolling) { | ||
var currentFrame; | ||
config.container.on('scroll.' + NAMESPACE, event => { | ||
state.scrollTop = config.container.scrollTop(); | ||
if (config.renderColumn) { | ||
state.scrollLeft = config.container.scrollLeft(); | ||
if (currentFrame) { | ||
cancelAnimationFrame(currentFrame); | ||
} | ||
triggerChange(); | ||
window.requestAnimationFrame(function () { | ||
state.scrollTop = config.container.scrollTop(); | ||
if (config.renderColumn) { | ||
state.scrollLeft = config.container.scrollLeft(); | ||
} | ||
triggerChange(); | ||
currentFrame = undefined; | ||
}); | ||
}); | ||
@@ -194,0 +201,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
591119
8185