@@ -84,6 +84,8 @@ div(:class="className")
8484 template( v-else )
8585 + TableWithHeight("fixedRightColumns" , "fixedright" , "onYscroll" , "true" )
8686 template( v-else )
87+ .c-scrolltable ( @scroll ="onScroll" )
88+ + Table("columns" )
8789 .c-fixtable__left (
8890 :class ="{'c-fixed__leftscroll': isScrollMove}"
8991 v-if ="fixedLeftColumns.length > 0"
@@ -92,8 +94,6 @@ div(:class="className")
9294 + Table("fixedLeftColumns" )
9395 template( v-else )
9496 + Table("fixedLeftColumns" , "true" )
95- .c-scrolltable ( @scroll ="onScroll" )
96- + Table("columns" )
9797 .c-fixtable__right (
9898 :class ="{'c-fixed__rightscroll': isScrollMove}"
9999 v-if ="fixedRightColumns.length > 0"
@@ -300,11 +300,7 @@ export default {
300300 tbodyEl .style .maxHeight = ` ${ this .height - theadHeight} px`
301301 },
302302 getCurrentScrollBarSize () {
303- const ua = window .navigator .userAgent
304- if (ua .indexOf (' MSIE' ) > 0 ||
305- Boolean (ua .match (/ Trident. * rv:11. / ))) {
306- this .scrollBarSize = getScrollBarSize ()
307- }
303+ this .scrollBarSize = getScrollBarSize ()
308304 },
309305 rowEnter (index ) {
310306 this .hoverRowIndex = index
@@ -326,7 +322,6 @@ export default {
326322 scrollEl .scrollTop = e .target .scrollTop
327323 },
328324 onScroll (e ) {
329- const maxWidth = e .target .scrollWidth - e .target .offsetWidth
330325 if (! e .target .className .includes (this .scrollBox )) {
331326 // fix mouseleave but scroll is keeping
332327 e .target .scrollTop = this .$refs .fixedleft .scrollTop
@@ -343,10 +338,6 @@ export default {
343338 if (this .$refs .fixedright ) {
344339 this .$refs .fixedright .scrollTop = scrollTop
345340 }
346- if (scrollLeft > maxWidth) {
347- e .target .scrollLeft = maxWidth
348- return
349- }
350341 if (scrollEl) {
351342 scrollEl .scrollLeft = scrollLeft
352343 }
0 commit comments