Skip to content

Commit 39106cf

Browse files
authored
fix wrong scrollBoxY value for legend scroll
1 parent 55d8f98 commit 39106cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/legend/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function drawOne(gd, opts) {
337337
legend.on('wheel', function() {
338338
scrollBoxY = Lib.constrain(
339339
legendObj._scrollY +
340-
((d3.event.deltaY / scrollBarYMax) * scrollBoxYMax),
340+
((d3.event.deltaY / scrollBoxYMax) * scrollBarYMax),
341341
0, scrollBoxYMax);
342342
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
343343
if(scrollBoxY !== 0 && scrollBoxY !== scrollBoxYMax) {

0 commit comments

Comments
 (0)