chanzuckerberg / sci-components

2021 Science Design System Component Library
https://chanzuckerberg.github.io/sci-components/
MIT License
25 stars 7 forks source link

Heatmap scrolling behavior #523

Open cathystoli opened 1 year ago

cathystoli commented 1 year ago

Expected behavior: When using a track pad to scroll I can move the heatmap to the left and right depending on what I have set up for my track pad.

Actual behavior: If i scroll on a track pad when my fingers staying on the track pad, the heatmap moves back and forth and does not scrolll in the direction that I expect

https://github.com/chanzuckerberg/sci-components/assets/108423692/7049d1b1-90ee-4210-a897-7ed01ee4be18

cathystoli commented 1 year ago

@masoudmanson this has been fixed right?

masoudmanson commented 11 months ago

@cathystoli

This issue is related to Echarts, and I'm currently awaiting the merge of this PR. Because Echarts does not properly support touchpad panning, I had to disable the default touchpad panning and set a condition on mouse-wheel scrolling:

The catch is that while scrolling up and down, there are no issues, however, scrolling left and right on the touchpad does not work properly. So, on the touchpad, only scroll up and down, never to the sides.