Skip to content

页面整体缩放后,echarts的鼠标会很不正常 #11032

Open

Description

@pangafu

Version

4.2.1

Steps to reproduce

   <body style="height: 100%; margin: 0; zoom:0.5">
        <!-- 请插入一个折线图-->
   </body>

What is expected?

请注意body中的style属性,zoom:0.5
希望页面整体缩放后,当鼠标移到echarts上后,鼠标指示的是真实的echarts图像位置

What is actually happening?

页面整体缩放后,当鼠标移到echarts上后,会发现鼠标指针和实际echarts标示的位置不一致

Activity

  1. echarts-bot commented on Aug 16, 2019

    @echarts-bot

    Hi! We've received your issue and please be patient to get responded. 🎉
    The average response time is expected to be within one day for weekdays.

    In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

    Have a nice day! 🍵

  2. added
    pending
    on Aug 16, 2019
  3. pangafu commented on Aug 16, 2019

    @pangafu
    Author

    bug

  4. xiaoxiclassmate commented on Aug 18, 2019

    @xiaoxiclassmate

    插眼, 也遇到相同问题,不同的是我这里PC端不会出现,移动端会出现此问题;
    css transform: scale() 也会发生偏移,

  5. removed
    pending
    on Aug 19, 2019
  6. added
    difficulty: normal
    on Aug 30, 2019
  7. added this to the 4.5.0 milestone on Sep 4, 2019
  8. modified the milestones: 4.5.0, TBD on Sep 23, 2019
  9. MercusChan commented on Aug 18, 2020

    @MercusChan

    I got the same issue

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

    bugdifficulty: normalpriority: high

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions