Skip to content

Commit

Permalink
fix: 修复开启 supportsCSSTransform 后 hover 在表格时报错
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Oct 28, 2024
1 parent de4ec94 commit c107cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/s2-core/src/interaction/event-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class EventController {

// 开启 CSS transform 时, 降级处理, 不做 canvas 内的空白检测: https://github.com/antvis/S2/issues/2879
if (this.spreadsheet.container.getConfig().supportsCSSTransform) {
return canvas.contains(event.target as HTMLElement);
return this.isMatchElement(event);
}

return this.isMatchElement(event) && this.isMatchPoint(event);
Expand Down

0 comments on commit c107cbf

Please sign in to comment.