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
Panning the stockChart
doesn't work smoothly on mobile
#18498
Comments
Thanks @jakubSzuminski for reporting the issue. Zoom problem is caused by |
Same bug. Wanted to try highcharts on mobile devices, it does not work. |
Hi. The mobile version of the chart according to our data is used in 50%. |
Hello @TTMSE There are two different issues mentioned in the ticket and I'm not sure to which you refer to:
Currently I can't suggest any workaround for the first one, but second one can be fixed by setting |
Thanks for the reply. Just a stock chart that does not work on mobile devices is not suitable for work. Your chart is very good and easy to integrate. But the impossibility of work on mobile versions does not allow to use it. |
Let me prioritize the issue, and we will check it. In the meantime, @TTMSE could you please test this solution? https://jsfiddle.net/BlackLabel/jd7b9n2x/6/ Simply copy&paste this snippet, before creating the first chart: Highcharts.wrap(Highcharts.Pointer.prototype, 'pinch', function (proceed, e) {
if (e.touches.length === 1 && e.type === 'touchmove') {
this.chart.pan(e, this.chart.options.panning);
} else {
proceed.call(this, e);
if (e.type === 'touchstart') {
this.chart.mouseDownX = this.pinchDown[0].chartX;
this.chart.mouseDownY = this.pinchDown[0].chartY;
}
}
}) Internal note: |
Hi, @pawelfus Thanks for the solution. But the zoom doesn't work correctly. The chart breaks after the zoom. |
Thanks! Regarding this:
Could you describe the issue? I simply zoomed in and tried to scroll: works fine. Zoomed out and tried to scroll - again, no problems. Does it happen in the demo above, or in your app? |
Looks like the issue got fixed with the #19055. Demo with code from the branch to check on mobile view in chrome dev tools: https://jsfiddle.net/BlackLabel/ygb1pf9z/show Could you please confirm @pawelfus before we close it? |
Confirmed, works fine, thank you! |
How did you finally solve this problem Panning on mobile devices doesn't work smoothly?? |
Using the above method, in ios Settings in the translation is not smooth, very lag, data volume is only 365 |
Could you check if you use the latest version? It should be fixed. If that's not the case, please recreate the issue in jsFiddle, we will check this. Thank you! |
Expected behaviour
Panning the
stockChart
on mobile should work smoothly as it does in web browser here: https://www.highcharts.com/demo/stock/cumulative-sumActual behaviour
Panning the
stockChart
on mobile doesn't work smoothly - instead of smooth panning, it loads in chunks, sometimes zooms in using a single finger pan.Live demo with steps to reproduce
Try panning the chart on mobile:
https://jsfiddle.net/BlackLabel/jd7b9n2x/
Product version
Highcharts 10.3.3
Affected browser(s)
The text was updated successfully, but these errors were encountered: