Skip to content

Commit

Permalink
fix(interval): 设置backgroundShape capture 为 true, 避免交互时被捕捉(如 element-s…
Browse files Browse the repository at this point in the history
…elected) (antvis#4714)

Co-authored-by: 可鉴 <jane.zkj@alibaba-inc.com>
  • Loading branch information
zhaokejian and 可鉴 authored Mar 14, 2023
1 parent 9d1a25f commit c717014
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/geometry/shape/interval/hollow-rect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ registerShape('interval', 'hollow-rect', {
...backgroundStyle,
path: backgroundPath,
},
capture: false,
zIndex: -1,
name: BACKGROUND_SHAPE,
});
Expand Down
1 change: 1 addition & 0 deletions src/geometry/shape/interval/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ registerShape('interval', 'rect', {
...backgroundStyle,
path: backgroundPath,
},
capture: false,
zIndex: -1,
name: BACKGROUND_SHAPE,
});
Expand Down

0 comments on commit c717014

Please sign in to comment.