Skip to content

Commit ac2c579

Browse files
committed
fixes plotly#2262 - Selection displayed on incorrect subplot
1 parent 98747b0 commit ac2c579

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plots/cartesian/select.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
225225
var ppts = mergedPolygons[i];
226226
paths.push(ppts.join('L') + 'L' + ppts[0]);
227227
}
228-
outlines.attr('d', 'M' + paths.join('M') + 'Z');
228+
outlines.attr('d', 'M' + paths.join('M') + 'Z')
229+
.attr('transform', 'translate(' + xs + ', ' + ys + ')');
229230

230231
throttle.throttle(
231232
throttleID,

0 commit comments

Comments
 (0)