Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The chart and browser freeze when active scrolling #21144

Open
EvgeniyDEM opened this issue May 9, 2024 · 10 comments · May be fixed by #21170
Open

The chart and browser freeze when active scrolling #21144

EvgeniyDEM opened this issue May 9, 2024 · 10 comments · May be fixed by #21170

Comments

@EvgeniyDEM
Copy link

EvgeniyDEM commented May 9, 2024

Actual behaviour

Latest Chrome for Android update
Active scrolling (swipe + touching) causes the chart and browser to freeze.

Live demo with steps to reproduce

https://www.highcharts.com/demo/stock/data-grouping

Product version

Highstock v11 (with rollback to v9)

Affected browser(s)

Chrome for android beginning with v124.0.6367.113

Affected device(s)

Samsung s24
Samsung A6
Lenovo P2

@EvgeniyDEM EvgeniyDEM changed the title The chart and browser freeze when scrolling The chart and browser freeze when active scrolling May 9, 2024
@noidar
Copy link

noidar commented May 9, 2024

I experience the same issue!

@raf18seb
Copy link
Contributor

Hi guys!

Thanks for reporting the issue.

Unfortunately, we weren't able to reproduce it in both Chrome v123 and v124 (124.0.6367.159) on a Samsung S22 Ultra with Android 14 (April 2024), see the video below.

436317011_7662173430472747_6576034351866042768_n.mp4

Could you provide more information that would help us pinpoint the issue?

@dkowcun
Copy link

dkowcun commented May 10, 2024

Hey, here is the the chart that I can reproduce the issue with: https://www.highcharts.com/demo/highcharts/line-time-series
using regular desktop Chrome (124) and mobile view. When you click on the series it freezes (sometimes for a veeery long time).

Screen.Recording.2024-05-10.at.11.23.22.mov
image

@noidar
Copy link

noidar commented May 10, 2024

Hello, I will provide more information specifically on my case.

Latest Chrome 124.0.6367.119 (Official Build) (arm64), turn in mobile preview.
Active touching the chart (swipe + touching) causes the chart and browser to freeze.
Main thread is blocked for around 10s to 30s.

highcharts:line-time-series

https://www.highcharts.com/demo/highcharts/line-time-series

I uploaded video screen recorder to youtube because of the github limitation to 10mb.
https://www.youtube.com/watch?v=uiBle_JCCec&ab_channel=RadionNoidar

@JJSLIoT
Copy link

JJSLIoT commented May 10, 2024

We are facing the same issue on the latest version of Chrome: 124.0.6367.159 & Android System WebView: 124.0.6367.123. I rolled back Chrome / Android System WebView updates to version: 120.x and I can confirm that the above-reported performance issues are not present on older versions of Webview.

@EvgeniyDEM
Copy link
Author

EvgeniyDEM commented May 10, 2024

Hi @raf18seb
Please try https://jsfiddle.net/Jein/auqs760v/
I use

dataGrouping: {
      groupPixelWidth: 0.5,
}

Before update Chrome Android v124.0.6367.113 the chart worked smoothly even with ~370,000 points
Without module boost

@JJSLIoT
Copy link

JJSLIoT commented May 10, 2024

We are facing the same issue on the latest version of Chrome: 124.0.6367.159 & Android System WebView: 124.0.6367.123. I rolled back Chrome / Android System WebView updates to version: 120.x and I can confirm that the above-reported performance issues are not present on older versions of Webview.
#21144 (comment)

Additionally, the issue is observed on Beta and Canary flavors of Android System WebView as well.
Beta version: 125.0.6422.34
Canary: 126.0.6470.0

@karolkolodziej
Copy link
Contributor

Thank you all for engaging in the discussion! I was able to recreate it with a Chrome emulator.
We will investigate and determine where is the source of the issue.

@karolkolodziej
Copy link
Contributor

The issue was already reported on the Chromium see: https://issues.chromium.org/issues/337338049

It looks like the issue is on the Chrome side but I was able to apply the suggested workaround successfully- demo.
You need to add the pointer-events to the chart's main container as shown in the code snippet bellow:

#container {
  pointer-events: fill;
}

@noidar
Copy link

noidar commented May 14, 2024

The issue was already reported on the Chromium see: https://issues.chromium.org/issues/337338049

It looks like the issue is on the Chrome side but I was able to apply the suggested workaround successfully- demo. You need to add the pointer-events to the chart's main container as shown in the code snippet bellow:

#container {
  pointer-events: fill;
}

Thank you very much @karolkolodziej for a fast solution.

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

Successfully merging a pull request may close this issue.

8 participants