rc-virtual-list
Advanced tools
Comparing version 3.2.4 to 3.2.5
@@ -209,3 +209,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function keepInRange(newScrollTop) { | ||
var newTop = Math.max(newScrollTop, 0); | ||
var newTop = newScrollTop; | ||
@@ -216,2 +216,3 @@ if (!Number.isNaN(maxScrollHeightRef.current)) { | ||
newTop = Math.max(newScrollTop, 0); | ||
return newTop; | ||
@@ -227,4 +228,3 @@ } | ||
syncScrollTop(newTop); | ||
} // This code may only trigger in test case. | ||
// But we still need a sync if some special escape | ||
} // When data size reduce. It may trigger native scroll event back to fit scroll position | ||
@@ -231,0 +231,0 @@ |
@@ -236,3 +236,3 @@ "use strict"; | ||
function keepInRange(newScrollTop) { | ||
var newTop = Math.max(newScrollTop, 0); | ||
var newTop = newScrollTop; | ||
@@ -243,2 +243,3 @@ if (!Number.isNaN(maxScrollHeightRef.current)) { | ||
newTop = Math.max(newScrollTop, 0); | ||
return newTop; | ||
@@ -254,4 +255,3 @@ } | ||
syncScrollTop(newTop); | ||
} // This code may only trigger in test case. | ||
// But we still need a sync if some special escape | ||
} // When data size reduce. It may trigger native scroll event back to fit scroll position | ||
@@ -258,0 +258,0 @@ |
{ | ||
"name": "rc-virtual-list", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "React Virtual List Component", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
128599