icicle-chart icon indicating copy to clipboard operation
icicle-chart copied to clipboard

Enable Normal Scrolling

Open agnesnatasya opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. The current behavior of the chart in Mac is that when there is a 'wheel' event, the chart will either zoom in or zoom out. 'Wheel'ing is usually used for scrolling in Mac laptop. Thus, I cannot scroll, I can only zoom in and out of the chart.

Describe the solution you'd like I would like the chart to be able to support scrolling. What I have done is I change the 'wheeling' listener. If it is wheeled and the 'Ctrl' key is pressed, it will zoom in or out. Otherwise, it will scroll as per normal. In the code of 'wheeling', I just added a if (even.ctrlKey) { _wheel implementation_ } However, after zooming, I am unable to scroll around, I can only see several nodes, the nodes that are in the current zoom view.

I want it such that when I zoom in, the other node that are not in the view are still there and I can still scroll around it. I have been looking at the implementation but I cannot clearly find which part of the code sets and update the width of the nodes to 0 after the node has been kicked out from the current view.

Describe alternatives you've considered Currently, after zooming in to a certain section, I need to zoom out, then scroll around again.

If you like the feature request, I can help to implement and change for you!

Thank you for your kind help!

agnesnatasya avatar Dec 07 '20 16:12 agnesnatasya

I would also like this feature

arolson101 avatar Jan 11 '21 15:01 arolson101

this would be a great feature.

barum avatar Apr 29 '22 14:04 barum