Skip to content

Commit 9119a04

Browse files
committed
fixup editable horizontal colorbar
1 parent ef423fa commit 9119a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/colorbar/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ function makeEditable(g, opts, gd) {
779779
isVertical ? opts._thickFrac : opts._lenFrac,
780780
0, 1, opts.xanchor);
781781
yf = dragElement.align(
782-
(isVertical ? opts._vFrac : opts._uFrac) + (dy / gs.h) * (isVertical ? -1 : 1),
782+
(isVertical ? opts._vFrac : (1 - opts._uFrac)) - (dy / gs.h),
783783
isVertical ? opts._lenFrac : opts._thickFrac,
784784
0, 1, opts.yanchor);
785785

0 commit comments

Comments
 (0)