amcharts / amcharts5

The newest, fastest, and most advanced amCharts charting library for JavaScript and TypeScript apps.
Other
342 stars 91 forks source link

Invert wheel direction for natural scrolling? #295

Closed keegandonley closed 2 years ago

keegandonley commented 2 years ago

On many Mac computers, the scroll direction is inverted from the standard on a Windows machine. Scrollable charts don't seem to respect this when scrolling vertically. Is it feasible to preserve the natural scrolling behavior inside a chart?

martynasma commented 2 years ago

Technically, this is not only Mac-related. It's how we treat wheel in panY situation. It's currently inversed on how OS wheel scroll works, even on Windows.

We will consider if we could just flip the direction of panY so it's consistent with the OS behavior.

keegandonley commented 2 years ago

Ah, I only develop on my mac so didn't realize the underlying reason. Thanks for the quick response, that would be a big help as I'm currently using the pan as a vertical overflow-style scrolling so it would feel much more natural

martynasma commented 2 years ago

Fixed in 5.1.5.

[5.1.5] - 2022-02-22

Added

Changed

Fixed

Full change log.

Download options.

Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.