解决横向滚动条、纵向滚动条互相影响问题

This commit is contained in:
wanghaoo 2019-02-27 15:57:43 +08:00
parent c7331d433a
commit ddf2692a9c
3 changed files with 7 additions and 29 deletions

32
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1039,7 +1039,7 @@ class Table extends Component {
} }
} }
// console.log('lastScrollTop--'+this.lastScrollTop+'--eventScrollTop--'+ e.target.scrollTop); // console.log('lastScrollTop--'+this.lastScrollTop+'--eventScrollTop--'+ e.target.scrollTop);
if (scroll.y && this.lastScrollTop != e.target.scrollTop) { if (scroll.y && this.lastScrollTop != e.target.scrollTop && e.target !== headTable) {
if (fixedColumnsBodyLeft && e.target !== fixedColumnsBodyLeft) { if (fixedColumnsBodyLeft && e.target !== fixedColumnsBodyLeft) {
fixedColumnsBodyLeft.scrollTop = e.target.scrollTop; fixedColumnsBodyLeft.scrollTop = e.target.scrollTop;
} }