john.h
Posts: 20
Joined: Mon Jan 25, 2021 5:13 pm

Zooming over small areas can cause bugged scrollbar behavior

I'm trying to make a scatter plot that can be 'xy' zoomed and then panned using the a vertical and horizontal scrollbar. I can do this by using Highstock instead of Highcharts. However, if I zoom into a small area of the graph and then scroll across the x-axis, the y-axis scroll bar will adjust in size based on if any points can be found by scrolling up and down that cross-section of the graph. This itself isn't a big deal, but sometimes when I then scroll with the vertical scroll bar, the y-axis seems to zoom in orders of magnitude smaller instead of scrolling.

Example: https://jsfiddle.net/tdx0rufy/19/
zoom into a 2 centimeter by 2 centimeter area to the right of the first two points. Do this while vertically centered. Then scroll the horizontal scroll bar all the way to the left and then attempt to scroll the vertical scroll bar upwards. The bug should appear.

Is there anyway to get horizontal and vertical scrolling without this bug and without explicitly setting the range for the data?
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Zooming over small areas can cause bugged scrollbar behavior

Hi,
Welcome to our forum and thanks for contacting us with your question.

Thanks for explaining but I can't replicate this behavior, could you show me at the video?

Let me know how are you doing with this.
Kind regards.
Sebastian Hajdus
Highcharts Developer
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Zooming over small areas can cause bugged scrollbar behavior

Hi,

Thanks for the video now it's clear.

I think you found a bug, I will test more this case and will report it on GitHub issue.
Are you interested to track this issue?

Best regards.
Sebastian Hajdus
Highcharts Developer
john.h
Posts: 20
Joined: Mon Jan 25, 2021 5:13 pm

Re: Zooming over small areas can cause bugged scrollbar behavior

Hi,

I'm definitely interested in tracking the issue. Is there a link you can give me?
Also, one workaround for the bug is to explicitly specify min and max for the x and y axes.

Thanks
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Zooming over small areas can cause bugged scrollbar behavior

Hi,

Github Issue that you can track.
https://github.com/highcharts/highcharts/issues/15046

Best regards.
Sebastian Hajdus
Highcharts Developer
john.h
Posts: 20
Joined: Mon Jan 25, 2021 5:13 pm

Re: Zooming over small areas can cause bugged scrollbar behavior

That bug seems to be related to tooltips and not the issue I reported
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Zooming over small areas can cause bugged scrollbar behavior

Hi,

Sorry, I added the wrong link, it's updated in the previous message.

Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Stock”