gtr32x
Posts: 1
Joined: Tue Apr 06, 2021 11:07 pm

Two finger swipe on Mac to Pan?

Hi there, I'm searching for a way to allow panning via two finger swipe without clicking. I've found `chart.panning` but after enabling it I do not know where to go next. I'm curious whether this is possible? MacOS Big Sur Chrome btw, thanks!
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Two finger swipe on Mac to Pan?

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

Of course, you can use a chart.panning and it will work.
If you want to change the behavior of panning you also have the possibility to do it in the event.load() and updating state.

In this topic you will find an example:
viewtopic.php?t=41374#p144469

References:
https://api.highcharts.com/highcharts/chart.panning

Let me know if that was what you were looking for.
Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Stock”