Skip to content

地图页面整体添加scale时触屏操作点击位置偏移,鼠标操作正常 #6674

Closed

Description

@troy351

One-line summary [问题简述]

地图页面整体添加scale时触屏操作点击位置偏移,鼠标操作正常

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 3.7.1
  • Browser version [浏览器类型和版本]: Chrome 61
  • OS Version [操作系统类型和版本]: windows 10

Expected behaviour [期望结果]

触屏点击位置不发生偏移

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

使用样例http://echarts.baidu.com/demo.html#map-china
重现步骤:

  1. 在devtool中选中上述样例右侧渲染结果的iframe
  2. 给iframe的body加上css transform: scale(0.7),尝试点击地图上的省份
  3. 鼠标点击正常,未发生错位
  4. 触屏点击不正常,发生错位

Activity

  1. tylerdd commented on Nov 20, 2017

    @tylerdd

    关注ing 希望得到尽快解决

  2. tylerrrkd commented on May 23, 2018

    @tylerrrkd

    ummm........

  3. feynmx commented on Nov 9, 2018

    @feynmx

    关注中,不只是地图,其他图表都有偏移问题,现在卡在这里了
    image

  4. stale commented on Dec 25, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  5. added
    stale
    on Dec 25, 2020
  6. github-actions commented on Sep 3, 2021

    @github-actions
    Contributor

    This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions