import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
+import { debounce } from 'lodash';
const easingOutQuint = (x, t, b, c, d) => c*((t=t/d-1)*t*t*t*t + 1) + b;
this._interruptScrollAnimation = scrollTop(scrollable);
}
- handleWheel = () => {
+ handleScroll = debounce(() => {
if (typeof this._interruptScrollAnimation !== 'undefined') {
this._interruptScrollAnimation();
}
- }
+ }, 200)
setRef = (c) => {
this.node = c;
role='region'
aria-labelledby={columnHeaderId}
className='column'
- onWheel={this.handleWheel}>
+ onScroll={this.handleScroll}>
{header}
{children}
</div>