Skip to content

Tooltip tap/click stops working after Pinch Zoom on Safari/iPad #19035

Closed

Description

@SyedTayyab99

Expected behaviour

The tooltip should work after pinch zoom just like it's working after zooming with the buttons or in the web browser.

Actual behaviour

On mobile browsers, after the pinch zoom, the click event on the tooltip is not registered. Please run the attached code.

Live demo with steps to reproduce

Attached

Product version

Highcharts JS v10.2.0
Highmaps JS v11.0.1

Affected browser(s)

Safari on IPAD
highmaps issue.zip

Activity

  1. KacperMadej commented on May 24, 2023

    @KacperMadej
    Contributor

    Hi @SyedTayyab99

    The modules are loaded inconsistently with different versions. All should be the same.

    You have customized code that might be unstable. Have you experienced the same problems without that code?

    In both index and index_alt the chart.pinchType: 'none' is set so on pinch nothing happens in the chart and in Safari the whole site is zoomed into.

    The difference between working (index_alt) and not working (index) is the custom tooltip that prevents touch (tooltip: { style: { pointerEvents: 'auto') on the map and looks like when it is hidden it still stops the touch because I am able to show the tooltip for a different part of the screen.

    The pinch action triggers the tooltip refresh for its location but as this is not a proper touch event that should trigger the tooltip it is not shown - just its content and position are updated.

    Internal note:
    This is not a Maps specific behavior - can be recreated with a column series type.
    Minimal code used the same as in this demo: https://jsfiddle.net/BlackLabel/v0jsL7zm/
    Steps:

    1. touch to show the tooltip
    2. pinch to zoom cose to the tooltip but outside of it so it hides while zooming
    3. try touching the points that would be under the tooltip if the tooltip were visible
    4. to show the tooltip click outside of the area were the tooltip would be is it was visible

    Additional note: seems to be affecting only Safari on iPad because Chrome and an Android device work fine.

  2. changed the title [-]Highmaps: Tooltip tap/click stops working after Pinch Zoom on mobile browsers[/-] [+]Tooltip tap/click stops working after Pinch Zoom on Safari/iPad[/+] on May 24, 2023
  3. mabuhaddah commented on Jun 16, 2023

    @mabuhaddah

    @KacperMadej Hi, is there any expected due date to fix the bug?
    your prompt reply is highly appreciated

  4. mabuhaddah commented on Jun 18, 2023

    @mabuhaddah

    @KacperMadej awaiting your feedback thankfully !

  5. oysteinmoseng commented on Jun 19, 2023

    @oysteinmoseng
    Member

    @mabuhaddah Hi, we will prioritize the issue and get back to you shortly

  6. self-assigned this
    on Jun 19, 2023
  7. mabuhaddah commented on Jun 20, 2023

    @mabuhaddah

    @jakubSzuminski Hope you are doing great ,, Could you please share the update for this ticket so far? thanks

  8. jszuminski commented on Jun 20, 2023

    @jszuminski
    Contributor

    Hi @mabuhaddah, we're currently debugging the issue. I'll keep you posted when we find a solution for you.

  9. jszuminski commented on Jun 20, 2023

    @jszuminski
    Contributor

    @mabuhaddah I've prepared a simple demo with a workaround: https://jsfiddle.net/BlackLabel/ceh3o8t2/

    Please try this out and let me know if that solved your problem.

  10. added a commit that references this issue on Jun 20, 2023
    e48bf3d
  11. added a commit that references this issue on Jun 23, 2023
    aa3aa06
  12. SyedTayyab99 commented on Jun 23, 2023

    @SyedTayyab99
    Author

    @jakubSzuminski The workaround worked like a charm. Thank you so much :D

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions