We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3213e49 commit 2ccfdfdCopy full SHA for 2ccfdfd
src/modules/ZoomPanSelection.js
@@ -682,7 +682,9 @@ export default class ZoomPanSelection extends Toolbar {
682
const toolbar = this.ctx.toolbar
683
684
// Use boundingRect for final selection area
685
- const selRect = me.selectionRect.node.getBoundingClientRect()
+ const selRect = w.globals.zoomEnabled
686
+ ? me.zoomRect.node.getBoundingClientRect()
687
+ : me.selectionRect.node.getBoundingClientRect()
688
const gridRectDim = me.gridRect.getBoundingClientRect()
689
690
// Local coords in the chart's grid
0 commit comments