@@ -64,7 +64,7 @@ module.exports = function plot(gd, wrappedTraceHolders) {
64
64
makeDragRow ( gd , tableControlView , null , d . scrollY + d3 . event . deltaY ) ( d ) ;
65
65
d . scrollbarState . wheeling = false ;
66
66
} )
67
- . call ( renderScrollbarKit , gd ) ;
67
+ . call ( renderScrollbarKit , gd , true ) ;
68
68
69
69
tableControlView
70
70
. attr ( 'transform' , function ( d ) { return 'translate(' + d . size . l + ' ' + d . size . t + ')' ; } ) ;
@@ -238,7 +238,7 @@ function flatData(selection) {
238
238
. map ( function ( g ) { return g . __data__ ; } ) ;
239
239
}
240
240
241
- function renderScrollbarKit ( tableControlView , gd ) {
241
+ function renderScrollbarKit ( tableControlView , gd , bypassVisibleBar ) {
242
242
243
243
function calcTotalHeight ( d ) {
244
244
var blocks = d . rowBlocks ;
@@ -307,7 +307,7 @@ function renderScrollbarKit(tableControlView, gd) {
307
307
return d . scrollbarState . barLength - c . scrollbarWidth / 2 ;
308
308
} )
309
309
. 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 ;
311
311
} ) ;
312
312
313
313
// cancel transition: possible pending (also, delayed) transition
@@ -782,7 +782,7 @@ function updateYPositionMaker(columnBlock, element, tableControlView, gd, d) {
782
782
// if d.column.type === 'header', then the scrollbar has to be pushed downward to the scrollable area
783
783
// if d.column.type === 'cells', it can still be relevant if total scrolling content height is less than the
784
784
// scrollable window, as increases to row heights may need scrollbar updates
785
- renderScrollbarKit ( tableControlView , gd ) ;
785
+ renderScrollbarKit ( tableControlView , gd , true ) ;
786
786
}
787
787
788
788
cellTextHolder
0 commit comments