Commit 931f7547 authored by Prasino's avatar Prasino Committed by 杨奕

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
parent c7ce5c78
...@@ -257,11 +257,13 @@ ...@@ -257,11 +257,13 @@
}); });
const scrollBodyWrapper = event => { const scrollBodyWrapper = event => {
const deltaX = event.deltaX; const { deltaX, deltaY } = event;
if (Math.abs(deltaX) < Math.abs(deltaY)) return;
if (deltaX > 0) { if (deltaX > 0) {
this.bodyWrapper.scrollLeft += 10; this.bodyWrapper.scrollLeft += 10;
} else { } else if (deltaX < 0) {
this.bodyWrapper.scrollLeft -= 10; this.bodyWrapper.scrollLeft -= 10;
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment