mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-03 12:48:45 +08:00
Table: fix scroll delta check bug (#6581)
* Table : fix summary scroll delta check bug bug description: when scroll event triggered in footerWrapper,it's not event.deltaX that changed, it's event.deltaY. * Table : fix summary scroll delta check bug bug description: when scroll event triggered in footerWrapper,it's not event.deltaX that changed, it's event.deltaY. * Table: fix wheelEvent check bug * Update table.vue * Update table.vue
This commit is contained in:
parent
c7ce5c78ce
commit
931f75474e
@ -257,11 +257,13 @@
|
||||
});
|
||||
|
||||
const scrollBodyWrapper = event => {
|
||||
const deltaX = event.deltaX;
|
||||
const { deltaX, deltaY } = event;
|
||||
|
||||
if (Math.abs(deltaX) < Math.abs(deltaY)) return;
|
||||
|
||||
if (deltaX > 0) {
|
||||
this.bodyWrapper.scrollLeft += 10;
|
||||
} else {
|
||||
} else if (deltaX < 0) {
|
||||
this.bodyWrapper.scrollLeft -= 10;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user