Commit a796b2c5b1888d196fbc78b6f122e3589613cec2

Authored by huanghong
1 parent b08f5e08

support ie Mousewheel

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/components/table/table.vue
@@ -547,6 +547,9 @@ @@ -547,6 +547,9 @@
547 if(!deltaY && event.wheelDeltaY){ 547 if(!deltaY && event.wheelDeltaY){
548 deltaY = -event.wheelDeltaY; 548 deltaY = -event.wheelDeltaY;
549 } 549 }
  550 + if(!deltaY && event.wheelDelta){
  551 + deltaY = -event.wheelDelta;
  552 + }
550 if(!deltaY) return; 553 if(!deltaY) return;
551 const body = this.$refs.body; 554 const body = this.$refs.body;
552 const currentScrollTop = body.scrollTop; 555 const currentScrollTop = body.scrollTop;