react-virtualized
Advanced tools
Comparing version 9.20.0 to 9.20.1
@@ -8,2 +8,6 @@ 'use strict'; | ||
var _promise = require('babel-runtime/core-js/promise'); | ||
var _promise2 = _interopRequireDefault(_promise); | ||
var _animationFrame = require('./animationFrame'); | ||
@@ -31,3 +35,7 @@ | ||
var requestAnimationTimeout = exports.requestAnimationTimeout = function requestAnimationTimeout(callback, delay) { | ||
var start = Date.now(); | ||
var start = void 0; | ||
// wait for end of processing current event handler, because event handler may be long | ||
_promise2.default.resolve().then(function () { | ||
start = Date.now(); | ||
}); | ||
@@ -34,0 +42,0 @@ var timeout = function timeout() { |
@@ -347,4 +347,4 @@ import _Object$assign from 'babel-runtime/core-js/object/assign'; | ||
// Store this flag to let the next cDU pass know it needs to recompute the scroll offset. | ||
this._recomputeScrollLeftFlag = scrollToColumn >= 0 && columnIndex <= scrollToColumn; | ||
this._recomputeScrollTopFlag = scrollToRow >= 0 && rowIndex <= scrollToRow; | ||
this._recomputeScrollLeftFlag = scrollToColumn >= 0 && (this.state.scrollDirectionHorizontal === SCROLL_DIRECTION_FORWARD ? columnIndex <= scrollToColumn : columnIndex >= scrollToColumn); | ||
this._recomputeScrollTopFlag = scrollToRow >= 0 && (this.state.scrollDirectionVertical === SCROLL_DIRECTION_FORWARD ? rowIndex <= scrollToRow : rowIndex >= scrollToRow); | ||
@@ -351,0 +351,0 @@ // Clear cell cache in case we are scrolling; |
@@ -0,1 +1,2 @@ | ||
import _Promise from 'babel-runtime/core-js/promise'; | ||
import { caf, raf } from './animationFrame'; | ||
@@ -19,3 +20,7 @@ | ||
export var requestAnimationTimeout = function requestAnimationTimeout(callback, delay) { | ||
var start = Date.now(); | ||
var start = void 0; | ||
// wait for end of processing current event handler, because event handler may be long | ||
_Promise.resolve().then(function () { | ||
start = Date.now(); | ||
}); | ||
@@ -22,0 +27,0 @@ var timeout = function timeout() { |
@@ -6,3 +6,3 @@ { | ||
"user": "bvaughn", | ||
"version": "9.20.0", | ||
"version": "9.20.1", | ||
"homepage": "https://github.com/bvaughn/react-virtualized", | ||
@@ -12,3 +12,2 @@ "main": "dist/commonjs/index.js", | ||
"jsnext:main": "dist/es/index.js", | ||
"sideEffects": false, | ||
"license": "MIT", | ||
@@ -15,0 +14,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
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
1116013
152
21731