Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix the issue where map drag interaction cannot be terminated ou… #3658

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

xiaoluoHe
Copy link
Contributor

@xiaoluoHe xiaoluoHe commented Jan 9, 2025

…tside the canvas

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Update dependency
  • Code style optimization
  • Test Case
  • Branch merge
  • Release
  • Site / documentation update
  • Demo update
  • Workflow
  • Other (about what?)

🔗 Related issue link

closes #3650

🔗 Related PR link

🐞 Bugserver case id

fileid=677f863944ae5e00b2b66221&interactionid=677f86573a88ae00b2d84d55

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough

@xile611 xile611 added this to the 1.13.4 milestone Jan 9, 2025
@@ -473,7 +473,10 @@ export class Zoomable implements IZoomable {
} as unknown as BaseEventParams);
this._zoomableTrigger.pointerId = null;
this._eventObj.off(move, { level: Event_Bubble_Level.chart, source: Event_Source_Type.chart }, mousemove as any);
this._eventObj.off(end, { level: Event_Bubble_Level.chart, source: Event_Source_Type.window }, mouseup as any);
[end, `${end}outside`].forEach(type => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xiaoluoHe 是不是应该修改配置,将end 事件设置成 ['pointerup', 'pointerupoutside'] 更好,这里写的很死

packages/vchart/src/component/common/trigger/config.ts

@xiaoluoHe xiaoluoHe changed the title fix: fix the issue where map drag interaction cannot be terminated ou… [WIP] fix: fix the issue where map drag interaction cannot be terminated ou… Jan 9, 2025
@xiaoluoHe xiaoluoHe changed the title [WIP] fix: fix the issue where map drag interaction cannot be terminated ou… fix: fix the issue where map drag interaction cannot be terminated ou… Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] 地图拖拽事件不符合预期
2 participants