+
Skip to content

Tooltip offset on Mobile Mode #3559

Open
@7eXx

Description

@7eXx

Tooltip in mobile mode have some offset if the charts has scrolled down.
For example:
In Desktop mode every tooltip is upside the relative point, even if the page has been scrolled down.
In Mobile mode tooltip are in the right position only if you are at the top of the page.
If you scroll down the page and want see the values in the chart, every tooltips is offset above the interested point.

Live example URL:
https://jsfiddle.net/9Lyr4e0x/

Steps to repro:

  1. showing tooltip in desktop version.
  2. Open example in mobile version.
  3. Showing tooltip
  4. Scrolling down the page.
  5. Select value in the chart to see the relative tooltip.
  6. The popup is offsetted.

Expected behavior

Tooltip near the interested point.

Actual behavior

Tooltip / popup is far away from point selected.

Context

Client wants to see value of the chart using his smartphone.

Environment

IDE used VS Code 1.51.1

  • Plottable version: 3.9.0
  • Chrome 86.0.4240 (Pc Version), Chrome Mobile 86.0.4240
  • Windows 10 / Android 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载