Official API for Dynamically Changing Pan and Zoom Behavior
Please add an official method for switching between various Pan and Zoom behaviors (i.e., to allow for different zoom/pan tools to be selected by the user instead of using a pan key).
4
votes
Kelly Graus
shared this idea
-
Paweł Fus commented
How about this solution: http://jsfiddle.net/eav5v8dz/ - in short, wrap Pointer.drag method, and check some input (checkbox or radiobutton etc.). When panning is enabled, simply add custom `event.my_nameKey` which will be set in "chart.panKey". Let me know if something is not clear!