echarts [Bug] series-map.selectedMode设置为single后,如果快速点击两个地区会同时选中该两个地区

xmjla07d  于 2022-11-02  发布在  Echarts
关注(0)|答案(1)|浏览(123)

Version

5.22

  • No response*

Steps to Reproduce

  1. series-map.selectedMode设置为single
  2. 快速点击多个地区,有几率会同时选中两个甚至多个地区
  3. 双击某个地区,有几率会选中该地区后无法取消

Current Behavior

目前项目需求为点击Map某一区域后选中该地区,但是经测试发现以上两个问题

Expected Behavior

期望能够设置单选后,快速点击能够只选中一个地区,双击后也能够取消选中

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

  • No response*
svdrlsy4

svdrlsy41#

@maijie It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Bug] After series-map.selectedMode is set to single, if you quickly click on two areas, the two areas will be selected at the same time

BODY

Version

5.22

  • No response*

Steps to Reproduce

  1. series-map.selectedMode is set to single
  2. Quickly click on multiple regions, there is a chance that two or more regions will be selected at the same time
  3. Double-click an area, there is a chance that the area cannot be canceled after it is selected

Current Behavior

The current project requirement is to click on a certain area of ​​the map and select the area, but the above two problems were found after testing

Expected Behavior

After I expect to be able to set a single selection, a quick click can select only one area, and a double-click can also cancel the selection

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

  • No response*

相关问题