react-virtualized
Advanced tools
Comparing version
@@ -431,3 +431,3 @@ "use strict"; | ||
var indices; | ||
(0, _TestUtils.render)(getMarkup({ | ||
var collection = (0, _TestUtils.render)(getMarkup({ | ||
onSectionRendered: function onSectionRendered(params) { | ||
@@ -440,2 +440,3 @@ indices = params.indices; | ||
compareArrays(indices, [3, 4, 5, 7, 8, 9]); | ||
expect(collection._collectionView.state.scrollPositionChangeReason).toEqual('requested'); | ||
}); | ||
@@ -450,3 +451,3 @@ it('should render correctly when :scrollLeft and :scrollTop properties are updated', function () { | ||
compareArrays(indices, [0, 1, 2, 3]); | ||
(0, _TestUtils.render)(getMarkup({ | ||
var collection = (0, _TestUtils.render)(getMarkup({ | ||
onSectionRendered: function onSectionRendered(params) { | ||
@@ -459,2 +460,3 @@ indices = params.indices; | ||
compareArrays(indices, [3, 4, 5, 7, 8, 9]); | ||
expect(collection._collectionView.state.scrollPositionChangeReason).toEqual('requested'); | ||
}); | ||
@@ -461,0 +463,0 @@ }); |
@@ -478,3 +478,4 @@ "use strict"; | ||
scrollLeft: 0, | ||
scrollTop: 0 | ||
scrollTop: 0, | ||
scrollPositionChangeReason: SCROLL_POSITION_CHANGE_REASONS.REQUESTED | ||
}; | ||
@@ -484,3 +485,4 @@ } else if (nextProps.scrollLeft !== prevState.scrollLeft || nextProps.scrollTop !== prevState.scrollTop) { | ||
scrollLeft: nextProps.scrollLeft != null ? nextProps.scrollLeft : prevState.scrollLeft, | ||
scrollTop: nextProps.scrollTop != null ? nextProps.scrollTop : prevState.scrollTop | ||
scrollTop: nextProps.scrollTop != null ? nextProps.scrollTop : prevState.scrollTop, | ||
scrollPositionChangeReason: SCROLL_POSITION_CHANGE_REASONS.REQUESTED | ||
}; | ||
@@ -487,0 +489,0 @@ } |
@@ -419,3 +419,3 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
var indices; | ||
render(getMarkup({ | ||
var collection = render(getMarkup({ | ||
onSectionRendered: function onSectionRendered(params) { | ||
@@ -428,2 +428,3 @@ indices = params.indices; | ||
compareArrays(indices, [3, 4, 5, 7, 8, 9]); | ||
expect(collection._collectionView.state.scrollPositionChangeReason).toEqual('requested'); | ||
}); | ||
@@ -438,3 +439,3 @@ it('should render correctly when :scrollLeft and :scrollTop properties are updated', function () { | ||
compareArrays(indices, [0, 1, 2, 3]); | ||
render(getMarkup({ | ||
var collection = render(getMarkup({ | ||
onSectionRendered: function onSectionRendered(params) { | ||
@@ -447,2 +448,3 @@ indices = params.indices; | ||
compareArrays(indices, [3, 4, 5, 7, 8, 9]); | ||
expect(collection._collectionView.state.scrollPositionChangeReason).toEqual('requested'); | ||
}); | ||
@@ -449,0 +451,0 @@ }); |
@@ -463,3 +463,4 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
scrollLeft: 0, | ||
scrollTop: 0 | ||
scrollTop: 0, | ||
scrollPositionChangeReason: SCROLL_POSITION_CHANGE_REASONS.REQUESTED | ||
}; | ||
@@ -469,3 +470,4 @@ } else if (nextProps.scrollLeft !== prevState.scrollLeft || nextProps.scrollTop !== prevState.scrollTop) { | ||
scrollLeft: nextProps.scrollLeft != null ? nextProps.scrollLeft : prevState.scrollLeft, | ||
scrollTop: nextProps.scrollTop != null ? nextProps.scrollTop : prevState.scrollTop | ||
scrollTop: nextProps.scrollTop != null ? nextProps.scrollTop : prevState.scrollTop, | ||
scrollPositionChangeReason: SCROLL_POSITION_CHANGE_REASONS.REQUESTED | ||
}; | ||
@@ -472,0 +474,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"user": "bvaughn", | ||
"version": "9.22.1", | ||
"version": "9.22.2", | ||
"homepage": "https://github.com/bvaughn/react-virtualized", | ||
@@ -9,0 +9,0 @@ "main": "dist/commonjs/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2272238
0.05%50123
0.02%