Skip to content

Commit

Permalink
use zoomRect when zoomEnabled is true
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Jan 21, 2025
1 parent 3213e49 commit 2ccfdfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/ZoomPanSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,9 @@ export default class ZoomPanSelection extends Toolbar {
const toolbar = this.ctx.toolbar

// Use boundingRect for final selection area
const selRect = me.selectionRect.node.getBoundingClientRect()
const selRect = w.globals.zoomEnabled
? me.zoomRect.node.getBoundingClientRect()
: me.selectionRect.node.getBoundingClientRect()
const gridRectDim = me.gridRect.getBoundingClientRect()

// Local coords in the chart's grid
Expand Down

0 comments on commit 2ccfdfd

Please sign in to comment.