amcharts3 icon indicating copy to clipboard operation
amcharts3 copied to clipboard

Deferring to page scroll when nothing left to scroll

Open benwiley4000 opened this issue 6 years ago • 1 comments

We have a chart that scrolls horizontally. When we scroll to the end of the chart, I would expect the page to begin scrolling, but nothing happens. This effect is worse when it's a chart that doesn't require any scrolling, since there's no feedback for the user to explain why the page isn't scrolling.

Is there any way to deal with this? If not would there be a way to pass a boolean property called deferToPageScrollWhenGraphScrollUnavailable (or perhaps something less verbose) which would avoid calling e.preventDefault() if there's nothing left to scroll in the graph in the current scroll direction?

Thanks so much! 🙂

benwiley4000 avatar Mar 08 '18 16:03 benwiley4000

New comment from Zendesk by Martynas Majeris on ticket 33369. (replying here will automatically notify amCharts support agent)

Hi there,

Sorry for not getting back earlier.

I'm afraid there is no such setting :(

You can prevent the chart from stealing swipe gestures on touch devices until user taps on it, though.

http://docs.amcharts.com/3/javascriptcharts/AmSerialChart#tapToActivate

(set it to true)

You can also disable mouse wheel scrolling (if you have it enabled):

http://docs.amcharts.com/3/javascriptcharts/AmSerialChart#mouseWheelScrollEnabled

I know it's not the same as you suggested. We will consider adding such feature in future version.

Yours sincerely,

Martynas Majeris amCharts

amcharts avatar Apr 19 '18 13:04 amcharts