Skip to content

Commit

Permalink
Merge pull request #3746 from VisActor/fix/zoom-error
Browse files Browse the repository at this point in the history
fix: map zoom error bug. fix#3743
  • Loading branch information
xile611 authored Feb 20, 2025
2 parents 3022f4b + e41ec89 commit 79f1e89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vchart",
"comment": "fix: map zoom error bug. fix#3743",
"type": "none"
}
],
"packageName": "@visactor/vchart"
}
4 changes: 2 additions & 2 deletions packages/vchart/src/interaction/zoom/zoomable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class Zoomable implements IZoomable {
if (getDefaultTriggerEventByMode(this._renderMode)) {
// hack 应该由事件系统做?或者事件系统有更好的方式处理这种交互冲突场景

// 只在drag时屏蔽,而zoom、scrol时不屏蔽
// 只在drag时屏蔽,而zoom、scroll时不屏蔽
// drag move: 屏蔽
// darg end 结束屏蔽
// 屏蔽时:clickEnable应该为false,即其他逻辑不允许响应click
Expand Down Expand Up @@ -192,7 +192,7 @@ export class Zoomable implements IZoomable {
...zoomParams,
delayMap[delayType]((params: BaseEventParams) => {
// if (realTime) {
this._zoomEventDispatch(params, regionOrSeries, callback, option.allowComponentZoom ?? false);
this._zoomEventDispatch(params, regionOrSeries, callback, option?.allowComponentZoom ?? false);
// }
}, delayTime) as any
);
Expand Down

0 comments on commit 79f1e89

Please sign in to comment.