Skip to content

Pinch to zoom stops working after interacting with legend or title #18062

Closed

Description

@ludvikbrodl

Expected behaviour

The pinch to zoom should keep working as normal even after clicking on other elements on the chart.

Actual behaviour

The pinch to zoom stops working until the chart is double tapped

Live demo with steps to reproduce

http://jsfiddle.net/hL7ebz5q/6/

Reproduceable on atleast

  • Android 13 Samsung S21 G5 - chrome 107.0.5304.105 and firefox 107.1.0
  • Android 9 Samsung Galaxy S8 - chrome 107.0.5304.141
  1. Open the jsfiddle on android,
  2. Single click the title or toggle the dataline by clicking the legend item twice.
  3. Try to zoom with pinch
  4. No zoom is applied after the pinch is released
  5. double tap inside the chart
  6. pinch to zoom now works again as intended
  7. click on the chart title or the legenditem twice
  8. the zoom stops working again

Product version

https://github.highcharts.com/master/highcharts.js
and
10.3.2

Affected browser(s)

  • Android 13 Samsung S21 G5 - chrome 107.0.5304.105 and firefox 107.1.0
  • Android 9 Samsung Galaxy S8 - chrome 107.0.5304.141
  • Tested on 2 Iphones, neither experience this bug in chrome or safari.

Activity

  1. raf18seb commented on Dec 5, 2022

    @raf18seb
    Contributor

    Hi @ludvikbrodl, thank you for reporting the issue!
    Confirmed on S22 Ultra, Chrome 108.0.5359.61 (working fine on iPhone)

    Internal note:
    Works fine on Android in v10.2.1, broken since 10.3.0 (of course, unable to bisect on mobile)

  2. jacob-haskins commented on Aug 24, 2023

    @jacob-haskins

    This is also happening for me. Is there a workaround or fix in the works?

  3. karolkolodziej commented on Aug 28, 2023

    @karolkolodziej
    Member

    Thanks @jacob-haskins for bringing our attention to this issue! In the upcoming weeks, we are going to take a closer look at this issue.
    We will keep you posted 😉

  4. self-assigned this
    on Aug 31, 2023
  5. hubertkozik commented on Aug 31, 2023

    @hubertkozik
    Member

    Internal note:
    Bisected to eafc087.

  6. hubertkozik commented on Aug 31, 2023

    @hubertkozik
    Member

    Hello guys!
    I have prepared a workaround for that issue. You can check it in the demo below. If you want to use it in your project now, just copy-paste the IIFE function with the plugin.

    Live demo: https://jsfiddle.net/BlackLabel/qo0wrz6s/

  7. added a commit that references this issue on Aug 31, 2023
    f7b5b76
  8. added a commit that references this issue on Sep 5, 2023
    c232fa5
  9. jacob-haskins commented on Oct 7, 2023

    @jacob-haskins

    There's an odd issue when using the proposed workaround. I'm noticing on Android, after the chart loads, the first pinch to zoom in will redraw the data to its original position, but pinching to zoom afterwards works properly.

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

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions