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:
Prasino 2017-08-19 22:29:15 +08:00 committed by 杨奕
parent c7ce5c78ce
commit 931f75474e

View File

@ -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;
}
};