@@ -64,7 +64,7 @@ module.exports = function plot(gd, wrappedTraceHolders) {
6464 makeDragRow ( gd , tableControlView , null , d . scrollY + d3 . event . deltaY ) ( d ) ;
6565 d . scrollbarState . wheeling = false ;
6666 } )
67- . call ( renderScrollbarKit , gd ) ;
67+ . call ( renderScrollbarKit , gd , true ) ;
6868
6969 tableControlView
7070 . attr ( 'transform' , function ( d ) { return 'translate(' + d . size . l + ' ' + d . size . t + ')' ; } ) ;
@@ -238,7 +238,7 @@ function flatData(selection) {
238238 . map ( function ( g ) { return g . __data__ ; } ) ;
239239}
240240
241- function renderScrollbarKit ( tableControlView , gd ) {
241+ function renderScrollbarKit ( tableControlView , gd , bypassVisibleBar ) {
242242
243243 function calcTotalHeight ( d ) {
244244 var blocks = d . rowBlocks ;
@@ -307,7 +307,7 @@ function renderScrollbarKit(tableControlView, gd) {
307307 return d . scrollbarState . barLength - c . scrollbarWidth / 2 ;
308308 } )
309309 . attr ( 'stroke-opacity' , function ( d ) {
310- return d . columnDragInProgress || ! d . scrollbarState . barWiggleRoom ? 0 : 0.4 ;
310+ return d . columnDragInProgress || ! d . scrollbarState . barWiggleRoom || bypassVisibleBar ? 0 : 0.4 ;
311311 } ) ;
312312
313313 // cancel transition: possible pending (also, delayed) transition
@@ -782,7 +782,7 @@ function updateYPositionMaker(columnBlock, element, tableControlView, gd, d) {
782782 // if d.column.type === 'header', then the scrollbar has to be pushed downward to the scrollable area
783783 // if d.column.type === 'cells', it can still be relevant if total scrolling content height is less than the
784784 // scrollable window, as increases to row heights may need scrollbar updates
785- renderScrollbarKit ( tableControlView , gd ) ;
785+ renderScrollbarKit ( tableControlView , gd , true ) ;
786786 }
787787
788788 cellTextHolder
0 commit comments