Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleBodyScroll = (event: SyntheticTouchEvent<*>) => {
if (event.target !== this.tableBody) {
return;
}
let left = scrollLeft(event.target);
let top = scrollTop(event.target);
if (top === 0 && left === 0) {
return;
}
this._listenWheel(left, top);
scrollLeft(event.target, 0);
scrollTop(event.target, 0);
};
handleBodyScroll = (event: SyntheticTouchEvent<*>) => {
if (event.target !== this.tableBody) {
return;
}
let left = scrollLeft(event.target);
let top = scrollTop(event.target);
if (top === 0 && left === 0) {
return;
}
this._listenWheel(left, top);
scrollLeft(event.target, 0);
scrollTop(event.target, 0);
};