Home › forums › Using CanvasJS › How to implement scrolling on mobile?
Tagged: scroll react drag mobile
This topic contains 1 reply, has 2 voices, and was last updated by Priyanka M S 7 months ago.
I am using the ReactJS version of the CanvasJS library.
I have some charts laid out on the screen such that they take up close to 100% height and width on a mobile device.
When I place my fingers on the chart and drag (in order to scroll), I am unable to scroll.
Is there any way to get around this?
Whenever you move finger/pointer on the chart, the chart has to know if you are trying to scroll or interact with the chart. Hence, the behavior is designed such that, the pointer gets locked to chart only when you touch and hold on there for a moment. But if you directly try to scroll vertically without pausing, it should let you scroll.
Priyanka M S
You must be logged in to reply to this topic.