react-virtualized
Advanced tools
Comparing version 10.0.0-alpha.11 to 10.0.0-alpha.12
@@ -184,4 +184,4 @@ 'use strict'; | ||
horizontalScrollDirection: 'forward', | ||
scrollLeft: typeof _this.props.defaultScrollLeft === 'number' ? _this.props.defaultScrollLeft : 0, | ||
scrollTop: typeof _this.props.defaultScrollTop === 'number' ? _this.props.defaultScrollTop : 0, | ||
scrollLeft: typeof _this.props.initialScrollLeft === 'number' ? _this.props.initialScrollLeft : 0, | ||
scrollTop: typeof _this.props.initialScrollTop === 'number' ? _this.props.initialScrollTop : 0, | ||
verticalScrollDirection: 'forward' | ||
@@ -322,11 +322,11 @@ }; | ||
var _props = this.props, | ||
defaultScrollLeft = _props.defaultScrollLeft, | ||
defaultScrollTop = _props.defaultScrollTop; | ||
initialScrollLeft = _props.initialScrollLeft, | ||
initialScrollTop = _props.initialScrollTop; | ||
if (typeof defaultScrollLeft === 'number' && this._scrollingContainer != null) { | ||
this._scrollingContainer.scrollLeft = defaultScrollLeft; | ||
if (typeof initialScrollLeft === 'number' && this._scrollingContainer != null) { | ||
this._scrollingContainer.scrollLeft = initialScrollLeft; | ||
} | ||
if (typeof defaultScrollTop === 'number' && this._scrollingContainer != null) { | ||
this._scrollingContainer.scrollTop = defaultScrollTop; | ||
if (typeof initialScrollTop === 'number' && this._scrollingContainer != null) { | ||
this._scrollingContainer.scrollTop = initialScrollTop; | ||
} | ||
@@ -881,3 +881,3 @@ | ||
scrollDirection: 'forward', | ||
scrollOffset: typeof _this.props.defaultScrollOffset === 'number' ? _this.props.defaultScrollOffset : 0 | ||
scrollOffset: typeof _this.props.initialScrollOffset === 'number' ? _this.props.initialScrollOffset : 0 | ||
}, _this._callOnItemsRendered = memoizeOne(function (overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) { | ||
@@ -991,12 +991,12 @@ return _this.props.onItemsRendered({ | ||
var _props = this.props, | ||
defaultScrollOffset = _props.defaultScrollOffset, | ||
initialScrollOffset = _props.initialScrollOffset, | ||
direction = _props.direction; | ||
if (typeof defaultScrollOffset === 'number') { | ||
if (typeof initialScrollOffset === 'number') { | ||
if (this._scrollingContainer != null) { | ||
if (direction === 'horizontal') { | ||
this._scrollingContainer.scrollLeft = defaultScrollOffset; | ||
this._scrollingContainer.scrollLeft = initialScrollOffset; | ||
} else { | ||
this._scrollingContainer.scrollTop = defaultScrollOffset; | ||
this._scrollingContainer.scrollTop = initialScrollOffset; | ||
} | ||
@@ -1003,0 +1003,0 @@ } |
@@ -177,4 +177,4 @@ import React, { PureComponent } from 'react'; | ||
horizontalScrollDirection: 'forward', | ||
scrollLeft: typeof _this.props.defaultScrollLeft === 'number' ? _this.props.defaultScrollLeft : 0, | ||
scrollTop: typeof _this.props.defaultScrollTop === 'number' ? _this.props.defaultScrollTop : 0, | ||
scrollLeft: typeof _this.props.initialScrollLeft === 'number' ? _this.props.initialScrollLeft : 0, | ||
scrollTop: typeof _this.props.initialScrollTop === 'number' ? _this.props.initialScrollTop : 0, | ||
verticalScrollDirection: 'forward' | ||
@@ -315,11 +315,11 @@ }; | ||
var _props = this.props, | ||
defaultScrollLeft = _props.defaultScrollLeft, | ||
defaultScrollTop = _props.defaultScrollTop; | ||
initialScrollLeft = _props.initialScrollLeft, | ||
initialScrollTop = _props.initialScrollTop; | ||
if (typeof defaultScrollLeft === 'number' && this._scrollingContainer != null) { | ||
this._scrollingContainer.scrollLeft = defaultScrollLeft; | ||
if (typeof initialScrollLeft === 'number' && this._scrollingContainer != null) { | ||
this._scrollingContainer.scrollLeft = initialScrollLeft; | ||
} | ||
if (typeof defaultScrollTop === 'number' && this._scrollingContainer != null) { | ||
this._scrollingContainer.scrollTop = defaultScrollTop; | ||
if (typeof initialScrollTop === 'number' && this._scrollingContainer != null) { | ||
this._scrollingContainer.scrollTop = initialScrollTop; | ||
} | ||
@@ -874,3 +874,3 @@ | ||
scrollDirection: 'forward', | ||
scrollOffset: typeof _this.props.defaultScrollOffset === 'number' ? _this.props.defaultScrollOffset : 0 | ||
scrollOffset: typeof _this.props.initialScrollOffset === 'number' ? _this.props.initialScrollOffset : 0 | ||
}, _this._callOnItemsRendered = memoizeOne(function (overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) { | ||
@@ -984,12 +984,12 @@ return _this.props.onItemsRendered({ | ||
var _props = this.props, | ||
defaultScrollOffset = _props.defaultScrollOffset, | ||
initialScrollOffset = _props.initialScrollOffset, | ||
direction = _props.direction; | ||
if (typeof defaultScrollOffset === 'number') { | ||
if (typeof initialScrollOffset === 'number') { | ||
if (this._scrollingContainer != null) { | ||
if (direction === 'horizontal') { | ||
this._scrollingContainer.scrollLeft = defaultScrollOffset; | ||
this._scrollingContainer.scrollLeft = initialScrollOffset; | ||
} else { | ||
this._scrollingContainer.scrollTop = defaultScrollOffset; | ||
this._scrollingContainer.scrollTop = initialScrollOffset; | ||
} | ||
@@ -996,0 +996,0 @@ } |
{ | ||
"name": "react-virtualized", | ||
"description": "React components for efficiently rendering large, scrollable lists and tabular data", | ||
"version": "10.0.0-alpha.11", | ||
"version": "10.0.0-alpha.12", | ||
"main": "index.cjs.js", | ||
@@ -6,0 +6,0 @@ "module": "index.esm.js", |
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